How to check whether the user likes this page on facebook from an external site?

I am creating an application using facebook like under GAE with python.

I would like to do different things if the user liked the page or not:

page_url=url
if user likes page_url:
   #do something
else:
    #do something else

I am interested in checking if the user likes this page, and not by pressing a button of a similar type.

I would also like to do this without requiring a facebook connection.

Thank!

+3
source share
1 answer

Use GraphApi "me / likes" with an authenticated user, then search for the results and find your identifier for your application / page.

+2
source

Source: https://habr.com/ru/post/1764289/


All Articles