Skip to content

Instantly share code, notes, and snippets.

View seviu's full-sized avatar

seviu seviu

  • Zürich, Switzerland
View GitHub Profile
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}/"
// 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"];