What is the minimum width and height Of Facebook Open Graph Images?

Today I had a much clearer answer to this question (from the Open Graph debugger tool): Small og:image: All the images referenced by og:image should be at least 200px in both dimensions, with 1500×1500 preferred. (Maximum image size is 5MB.) Please check all the images with tag og:image in the given url and ensure that … Read more

Get long live access token from Facebook

There is a way to extend this to 60 days. described here: https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal/ under Scenario 4: Client-side OAuth and Extending Access_Token Expiration Time through New Endpoint Edit: In order to extend the access token you need to make the following request with your short lived access token: https://graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN

Getting the Facebook like/share count for a given URL

UPDATE: This solution is no longer valid. FQLs are deprecated since August 7th, 2016. https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://www.techlila.com%22 Also http://api.facebook.com/restserver.php?method=links.getStats&urls=http://www.techlila.com will show you all the data like ‘Share Count’, ‘Like Count’ and ‘Comment Count’ and total of all these. Change the URL (i.e. http://www.techlila.com) as per your need. This is the correct URL, I’m getting right results. EDIT … Read more

Get username field in Facebook Graph API 2.0

Facebook got rid of the username because the username is one way of sending emails via Facebook. For example, given the url http://www.facebook.com/sebastian.trug the corresponding Facebook email would be sebastian.trug@facebook.com which, if emailed, would be received to messages directly (if the message setting is set to public), otherwise to the other inbox.

How to extend access token validity since offline_access deprecation

Edit (August 14th 2012): A week ago the official Facebook PHP SDK was updated. The function name was changed to setExtendedAccessToken, and it was decided we actually needed to destroy the session afterwards, to remove the risk of having two active sessions. Also, the function no longer actually returns the token, but instead stores it … Read more

Facebook Graph API GET request – Should contain “fields” parameter (Swift, Facebook SDK v4.5.1)

this line needs a parameters value that is NOT nil let graphRequest : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: “me”, parameters: nil) I’ll expand more, for example, and this is psuedo code of sorts: so for ObjC it would be this, for example, so the the above would read the following: parameters:@{@”fields”: @”id, name”} In swift it would … Read more