Facebook Open Graph API Examples – How to get the access token?

As long as you only want to test… Use the Graph API Explorer to generate a token with the permissions you want. Don’t hesitate to select all of them. Then, just copy/paste the token at the end of each graph.facebook.com URL. For instance: https://graph.facebook.com/v1.0/me/friends?access_token=<ACCESS_TOKEN> The day you want to get the access taken for an … Read more

How can I query public facebook events by location/city?

Updated 2014-07-02 You can’t directly search the Facebook API for events near a location. Since originally giving this answer, the Graph API has made it harder to search for events. The Elmcity script referenced by the OP does a simple search for a keyword in the event title. Try “Lancaster” for example. You’ll get events … Read more

Facebook Graph API – How do you retrieve the different size photos from an album?

Facebook provides a type option for the picture field, for example, you can specify something like: <img src=”https://graph.facebook.com/xxx/picture?access_token=yyy&type=normal /> where the type parameter can be one of square, small, normal, or large for profile pictures or thumbnail, normal, album for album pictures. Source: http://developers.facebook.com/docs/reference/api/user/ (under Connections section) Edit: Added different options for album pictures

Facebook Android SDK 4.5.0 get email address

You need to ask for parameters to facebook in order to get your data. Here I post my function where I get the facebook data. The key is in this line: parameters.putString(“fields”, “id, first_name, last_name, email,gender, birthday, location”); // ParĂ¡metros que pedimos a facebook btnLoginFb.registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { System.out.println(“onSuccess”); … Read more

Getting username and profile picture from Facebook iOS 7

This is the simplest way I’ve found to get the user’s profile picture. [[FBRequest requestForMe] startWithCompletionHandler:^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *FBuser, NSError *error) { if (error) { // Handle error } else { NSString *userName = [FBuser name]; NSString *userImageURL = [NSString stringWithFormat:@”https://graph.facebook.com/%@/picture?type=large”, [FBuser objectID]]; } }]; Other query parameters that can be used are: type: small, … Read more

Looking for the Type details for page_stories_by_story_type & page_consumptions_by_consumption_type

At time of writing, the full list of available story types is: page post tag mention checkin user post deal fan comment purchase paid link question coupon other The full list of available consumption types is: link clicks other clicks photo view video play other For each, the mapping should be perfectly clear. Any remaining … Read more

Facebook Messenger Bot verification

I had the same problem and got responses in the facebook developers community. It seems like it is confirmed bug: https://developers.facebook.com/bugs/230322797329131/?hc_location=ufi Update: It seems to work now. Since Tuesday this week I can see reviewers sending messages to the bot and get responses in the messages of the page.

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