- Home /
Using Unity3d Facebook SDk can we able to get user liked or not?
Hi this Subbu.i am developing one Racing game.For this game i am planning to integrate who are Like my facebook like page i have to give some reward.Can able to get using Unity facebook sdk.I am checked lot of forums.But no chance.some one says Using FQL we can able to get it.Can any one help me out. Thanks in Advance.
Just use facebook graph api as suggested by @Hari$$anonymous$$rishnan. Also please select the correct answer to close off this question
Answer by HariKrishnan · Mar 18, 2014 at 09:01 AM
first Login in facebook. then stored the name in one variable.
after Application.openurl("");using to like the page. next graph api using to check, user have liked the page or not with using the page id.
Hi Hari$$anonymous$$rishnan, "next graph api using to check, user have liked the page or not with using the page id.", can you explain more.How to use graph api.
first u add a facebook plugin in ur app. then u try this FB.API("me/liked",httprequest,callback); next callback function using to check your liked page is availed or not.
in Graph API Explorer can you choose get method after [me/likes?fields=id]
so much id is there now liked page id is always in the list. next you will check that page is Liked or not
Answer by Slim_Gabsi · Mar 19, 2019 at 12:03 PM
you need to add "user_likes" permission and then try this
FB.API("/me/likes/{your page id}&access_token="+FB.AccessToken,Facebook.HttpMethod.POST, LikeCallback, FBData);
Your answer
Follow this Question
Related Questions
Getting user name Facebook 4 Answers
Facebook Post to wall FB.Feed issue in Unity Facebook SDK 1 Answer
Posting to Facebook wall using HttpMethod.POST unity3D 0 Answers
Facebook SDK restarts app 1 Answer