[Facebook-iOS-SDK 4.0]How to get user email address from FBSDKProfile

To fetch email you need to utilize the graph API, specifically providing the parameters field populated with the fields you want. Take a look at Facebook’s Graph API explore tool, which can help to figure out the queries. https://developers.facebook.com/tools/explorer The code that worked for me to fetch email is the following, which assumes you are … Read more

How to make Xcode find file FacebookSDK.h?

First, you have to remove your FacebookSDK.framework from your Project. Then start over again with these 5 steps. DO NOT re-link the framework. Go to Build Phases in your Project Target. In Link Binary With Libraries, click the “+” button. Click on “Add Other…” button Browse your FacebookSDK folder. Generally in ~/Documents/FacebookSDK/ Clik on (select) … Read more

IOS Facebook SDK – Post Open Graph and show on Timeline without clicking Activity Log

I’ve moved this answer out of @isaacselement question. Just add one more code to your FBOpenGraphAction Object: id<FBOpenGraphAction> action = (id<FBOpenGraphAction>) [FBGraphObject graphObject]; [action setObject: @”true” forKey: @”fb:explicitly_shared”]; // This is the key point! And you should enable the ‘explicitly shared’ setting for the open graph action in the Facebook Developer App Dashboard in the … Read more

How to use Facebook iOS SDK on iOS 10

Error OSStatus -10814 occures when canOpenURL: can’t find any application, that can open this URL (actually, Facebook trying to find their application by calling canOpenURL: with argument “fbauth2:/”). Printing happens inside of function, so you can’t do anything with that. But if you will run your application on device with installed Facebook app, you will … Read more

Facebook Graph API v2.0+ – /me/friends returns empty, or only friends who also use my application

In v2.0 of the Graph API, calling /me/friends returns the person’s friends who also use the app. In addition, in v2.0, you must request the user_friends permission from each user. user_friends is no longer included by default in every login. Each user must grant the user_friends permission in order to appear in the response to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)