This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I do not know if this still works, but I used to use this to get friends and their photos in one of iPhonso past apps | |
- (void)getMyFriends { | |
[FBSession setSession:self.fbSession]; | |
NSString* fql1 = @"SELECT uid, first_name, last_name, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = %qi) order by first_name"; | |
NSString* fql2 = @"SELECT owner, size FROM album WHERE owner IN (SELECT uid FROM #friend)"; | |
NSString *fql1WithId = [NSString stringWithFormat:fql1, _uid]; | |
NSString *fqlWithId = [NSString stringWithFormat:@"{\"friend\":\"%@\",\"album\":\"%@\",}", fql1WithId, fql2]; | |
NSDictionary* params = [NSDictionary dictionaryWithObject:fqlWithId forKey:@"queries"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RESOURCE_PATH=${SRCROOT}/${PRODUCT_NAME}/config/PROD | |
if [ $CONFIGURATION != 'Release' ]; then | |
RESOURCE_PATH=${SRCROOT}/${PRODUCT_NAME}/config/DEV | |
fi | |
BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app | |
echo "Copying all files under ${RESOURCE_PATH} to ${BUILD_APP_DIR}" | |
cp -v "${RESOURCE_PATH}/"* "${BUILD_APP_DIR}/" |