facebook login issue – canOpenURL: failed for URL: “fbauth2:///” – error: “(null)”

I have the same warning, but in Facebook Docs there is an answer. This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning https://developers.facebook.com/docs/ios/ios9

Get public page statuses using Facebook Graph API without Access Token

This is by design. Once it was possible to fetch the latest status from a public page without access token. That was changed in order to block unidentified anonymous access to the API. You can get an access token for the application (if you don’t have a Facebook application set for your website – you … Read more

New og:image size for Facebook share?

EDIT: The current best practices regarding Open Graph image sizes are officially outlined here: https://developers.facebook.com/docs/sharing/best-practices#images There was a post in the Facebook developers group today, where one of the FB guys uploaded a PDF containing their new rules about image sizes – since that seems to be available only if you’re a member of the … Read more

Facebook SDK returned an error: Cross-site request forgery validation failed. The “state” param from the URL and session do not match

I found that as long as I enabled PHP sessions before generating the login url, and at the top of the script Facebook eventually redirects to, it works just fine on its own without setting a cookie (as per ale500’s answer). This is using the 5.1 version of the sdk. At the top of both … Read more

Facebook Page Access Tokens – Do these expire?

Page Tokens expire when the access token expires for the user that the page token was generated from. Edit 6.28.2013: If you extend the user access token and obtain a new page access token for the user, that page token will not expire unless the user de-authorizes your app. Offline access has now been deprecated, … Read more

‘Like’ a page using Facebook Graph API

Facebook has announced support for liking URL’s outside of Facebook by using the official built-in Like action. You need to have publish_actions permissions. The graph url for this is: https://graph.facebook.com/[User FB ID]/og.likes?object=OG_OBJECT_URL&access_token=USER_ACCESS_TOKEN However, you cannot use this to like a page on Facebook currently, as the documentation states: For Facebook Pages or websites that do … Read more

Facebook API: Get fans of / people who like a page

There is a “way” to get some part of fan list with their profile ids of some fanpage without token. Get id of a fanpage with public graph data: http://graph.facebook.com/cocacola – Coca-Cola has 40796308305. UPDATE 2016.04.30: Facebook now requires access token to get page_id through graph so you can parse fanpage HTML syntax to get … Read more