facebook-like

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

£可爱£侵袭症+ 提交于 2019-12-19 04:22:33
问题 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? 回答1:

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

一曲冷凌霜 提交于 2019-12-19 04:22:06
问题 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? 回答1:

Facebook GRAPH API Photo like count without paging

 ̄綄美尐妖づ 提交于 2019-12-19 03:14:06
问题 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

Get FB likes count for specific URL and page

不想你离开。 提交于 2019-12-18 11:58:05
问题 This is a two questions in one. Is it possible to get the likes count to a specific page inside a website? As in if there's a like button without a specific target url, likes will be given to the address in the window.location.href ; can this number be retrieved without an API key? Is it possible to get the official Facebook page/page id if I only have the URL of the website? If i only have the URL / domain name (coca-cola.com), can I get the facebook page which is https://www.facebook.com

Like a Facebook Wall Post - Javascript

笑着哭i 提交于 2019-12-18 04:26:07
问题 I'm developing a Facebook application that retrieves specific facebook wall posts. I simply want to allow the user to "like" the post from within my application using the javascript sdk. Anyone know how to accomplish this? 回答1: UPDATE: Issuing a POST request to the likes connection of the post object is all you need: You can like a Post by issuing a HTTP POST request to the POST_ID/likes connection with the publish_stream permission. No parameters necessary. Example: FB.api("/POST_ID/likes",

AddThis buttons wont update to include fragment (#Hash Tag)

南笙酒味 提交于 2019-12-18 04:23:30
问题 I have these AddThis buttons on my website, and my site uses JS to take a user though an image gallery, when changing an image the URL is updated with the image title in the fragment element, the problem I have is this is not being reflected in the AddThis links. I've tried to get some answers from the AddThis forums, but was pointed at the api documentation and the addthis.toolbox() function, but it doesn't seem to be working out for me, so I thought I'd run it past the experts here. This is

facebook like: href url vs. canonical url

心已入冬 提交于 2019-12-18 02:29:31
问题 for tracking purposes, I want that the URL, which appears on the facebook stream after an "like-action", is slightly different from the URL the user actually liked. Example: I use <link rel="canonical" href="http://example.com/test.html"> in my head section to tell facebook to which URL a like-action on this website refers to. Further down on the website I have <fb:like href="http://example.com/test.html?param=144141"> with the same URL, just with an additional parameter. My intention: If

facebook like: href url vs. canonical url

微笑、不失礼 提交于 2019-12-18 02:27:59
问题 for tracking purposes, I want that the URL, which appears on the facebook stream after an "like-action", is slightly different from the URL the user actually liked. Example: I use <link rel="canonical" href="http://example.com/test.html"> in my head section to tell facebook to which URL a like-action on this website refers to. Further down on the website I have <fb:like href="http://example.com/test.html?param=144141"> with the same URL, just with an additional parameter. My intention: If

How to count all of the “Likes” and “Comments” in a Facebook photo album?

感情迁移 提交于 2019-12-17 23:00:30
问题 Just thought I would share the answer to the problem I had. I was looking for a way to count all the likes and comments from each of the photos in my photo album on Facebook. My photo album had thousands of likes and comments spread out over hundreds of photos so there was no way it could be done by hand. I couldn't find an existing way to do it automatically so here is my solution. After lots of experimenting with the Facebook Graph API trying to figure out how to get the info from Facebook

Check if logged in user has liked my Facebook Page

▼魔方 西西 提交于 2019-12-17 22:10:01
问题 OK. So I have no idea on how to do this but you are going to have to talk like a 3 year old to me. I know PHP, HTML, CSS and a tiny smidge of javascript. I want to be able to make a page that gets the users facebook and checks to see if they have liked my Facebook page (https://www.facebook.com/MrDarrenGriffin). If they have, a redirect will direct them to a page. However, If not, it will tell them that to go to the downloads page, they have to like the page. The liking method could be with