0

I am using PHP 5.3.8, therefore I can't use the latest Facebook SDK which works only with PHP 5.4.X.

given a url, I'd like my server to tell if this is a facebook-like-page, or not.

Do I have to use OAuth? I used to use the graph-api, but now I get all weird errors. like no access-token provided, no authorization etc.

My code was using cURL with GET and accessed https://graph.facebook.com/.urlencode("THE_PAGE_URL");

I don't know if this is not an overkill to do a whole authorization from my server, and if so, to whom? I must say I am lost in the facebook documentation, frankly.

I tried this sample code from Facebook, which does not work at all.

Is there a simple way to get info about a public like-page from facebook?

Linus Unnebäck
  • 16,898
  • 12
  • 62
  • 76
Ted
  • 3,533
  • 9
  • 48
  • 92

1 Answers1

0

An easy way to make calls using the Facebook Graph API is with their Graph API Explorer.

You have to be logged into your Facebook developer account to access it obviously, but it is really helpful if you're experimenting with making different calls to a Facebook page.

Regarding oAuth, I would also highly recommend that you obtain a permanent page access token. It's the best way to mitigate the complexities of Facebook's oAuth process.

facebook: permanent Page Access Token?

Community
  • 1
  • 1
AdjunctProfessorFalcon
  • 1,560
  • 4
  • 22
  • 53
  • For now, the solution of using a "permanent token" (it's only for 2 months) is great for me, although I will need to renew it every now and then – Ted Jul 03 '15 at 22:31
  • @Ted If you follow those steps, you actually end up with a permanent access token that is just that: permanent. It doesn't expire :) – AdjunctProfessorFalcon Jul 03 '15 at 23:36