-1

hi i have a facebook page and app.

when new user loading facebook app, it needs to check is he already liked to my fb page. if not user liked to it need to popup message to like page.

thanks for you time..

HackerGK
  • 360
  • 3
  • 15
  • 1
    Without having the user connect to your app and giving permission first, this is only possible within a Page Tab app on Facebook. (As for how – please do some research.) – CBroe Mar 13 '14 at 11:27

1 Answers1

2

You could issue the following request (if you before gathered the "user_likes" permissions for your app, and a respective access token):

GET /{user-id}/likes/{page-id}

with {user-id} as "me" and {page-id} as the page_id of your page as described here: https://developers.facebook.com/docs/graph-api/common-scenarios#pagelikes

Tobi
  • 31,405
  • 8
  • 58
  • 90