facebook-like

response.authResponse is null

房东的猫 提交于 2019-12-01 01:48:17
i have write following code to check the login status of facebook. FB.getLoginStatus(function(response) { if (response.status === 'connected') { var user_id = response.authResponse.userID; var page_id = "app_id"; var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id; var the_query = FB.Data.query(fql_query); the_query.wait(function(rows) { if (rows.length == 1 && rows[0].uid == user_id) { alert("liked the page"); } else { alert("not liked "); } }); } else if (response.status === 'not_authorized') { } else { alert("not logged in"); } }); i am getting the value

Facebook Like button for one facebook page of an app from it's own ios app

霸气de小男生 提交于 2019-12-01 01:16:05
I am looking for Like Button to be shown in my ios native app, users of that app have already connected to app via facebook account. there are several questions related to Facebook Like Button on stackoverflow but those are not specific to authorized single facebook page of the app. According to official doc of facebook, facebook pages can not be liked via built-in action o open graph api. But want only one official facebook page of that app to be liked by user when he hits like button. i don't want user to navigate away from the app or login again in web view to like facebook page. is it

How can I get the Facebook object id for a new web page?

断了今生、忘了曾经 提交于 2019-12-01 00:58:45
I've got an Android app that integrates the Facebook Android SDK. We'd like to set it up so, at the users request, it dynamically creates a webpage and sends a "like" to Facebook for that page. However, in order to do this it seems we need a Facebook Object ID for the webpage, and the page won't get a Facebook Object ID until someone physically loads the page and clicks the like button in the Javascript. How can we get Facebook to assign an object ID for our page when it gets created? You can get the webpage id by posting to the graph using ?id= url. https://graph.facebook.com/?ids=http:/

Error parsing XML : The reference to entity “version” must end with the ';' delimiter [duplicate]

孤人 提交于 2019-12-01 00:21:30
问题 This question already has answers here : The reference to entity “foo” must end with the ';' delimiter (2 answers) Closed 3 years ago . I'm fairly new to this, so sorry if this is a simple question. I'm trying to install the FB like box onto my website www.thehungryeurasian.com However, when I try inserting the Javascript SDK: <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id

fail to publish a facebook like from my android app to a given postId

天涯浪子 提交于 2019-11-30 23:38:58
I'm trying to publish a facebook like from my android app to a given postId = 10154194181895153 . I have read many ways to do so. But each of them returned an fb response error. Can you please explain me the difference between A and B? I have tried to move A to a asyncTask (C) but it didn't help as you can see. fbLikeBtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // fbLike_optionA(); // fbLike_optionB(); fbLike_optionC(); } Option A {Response: responseCode: 200, graphObject: null, error: {HttpStatus: -1, errorCode: -1, errorType: null, errorMessage:

Facebook GRAPH API Photo like count without paging

会有一股神秘感。 提交于 2019-11-30 22:15:11
I'm trying to get like counts for FB pictures. The pictures we are counting the likes for are usually VERY popular so have a big amounts of LIKES. For example, the " 4 more years" obama picture is the "most liked" on facebook with more than 4 million likes. The problem is that nowhere in the GRAPH API reponse for that picture do we get the count number, I would have to page through the whole four million likes to get the number... its insane. https://graph.facebook.com/10151255420886749/likes { "data": [ { "id": "100004002885259", "name": "Camy Doyna" }, { "id": "100003495050210", "name":

response.authResponse is null

青春壹個敷衍的年華 提交于 2019-11-30 21:58:18
问题 i have write following code to check the login status of facebook. FB.getLoginStatus(function(response) { if (response.status === 'connected') { var user_id = response.authResponse.userID; var page_id = "app_id"; var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id; var the_query = FB.Data.query(fql_query); the_query.wait(function(rows) { if (rows.length == 1 && rows[0].uid == user_id) { alert("liked the page"); } else { alert("not liked "); } }); } else if

How to make a Facebook “Like” button that is just a link, not an iFrame?

人走茶凉 提交于 2019-11-30 21:51:07
问题 I would like to put a "Like" button into an email message that it going out to our e-newsletter subscribers. The usual way of embedding a Like button, which uses, an iframe technique, is not going to work. What I would like to do is to have a static hyperlink, where clicking on the button image will just go to a particular URL that is our corresponding Facebook page, and do the action of becoming a fan. Can anybody figured out an official or unofficial kind of URL that one could link to that

How can I get user's facebook ID who clicked like button?

可紊 提交于 2019-11-30 18:17:18
问题 Is there a way to get the user's facebook ID who has clicked like button of the social plugin on my own website? I couldn't find any way to make it even though I spent for searching it whole day... 回答1: As far as I know it's impossible for you to know who clicked a 'like' button, however if a user logs in to facebook through your site (meaning that you wrote some facebook app which retrieves the info) than you can access the information. try reading the documentation in api.facebook.com, good

Do Facebook Like Buttons require an App ID?

送分小仙女□ 提交于 2019-11-30 16:22:00
问题 When going to the set up pages for all the Social Plugins, they now provide example code using an APP ID. http://developers.facebook.com/docs/plugins/ Is an APP ID now required for the Like Button and other plugins? What happens if an APP ID is not included when using the plugins? I've checked the Facebook developer blog and read about the Like Button Migration. I haven't been able to find a straight answer for this either there or in the FB Like Reference. 回答1: Notice: This is an old dated