facebook-like

How to create a fan / like gate on Facebook?

可紊 提交于 2019-12-01 12:29:38
问题 I am trying to create a simple fan/like gate. Where you specify one content for none fans and other content for fans (if they pressed the like button). However when I run the page in the page tab it does not return a signed request and thus there is no way for me to figure out how to do it. Can someone post a tutorial, or have a fix for this? At this point I got the following code: index.php <?php require dirname( __FILE__ ) . '/../api/facebook.php'; // Create our application instance //

Facebook like count url

╄→尐↘猪︶ㄣ 提交于 2019-12-01 12:25:58
问题 As Facebook changed their API and deprecated the old one, I need to get data (likes count, share count, comment count) about single pages. I figured out how to get data over Facebook graph (example link): https://graph.facebook.com/?fields=og_object{likes.limit(0).summary(true)},share&ids=http://www.businessinsider.com/airlines-dont-disclose-carrier-fee-that-inflates-ticket-prices-2016-9 But now I don't know how to echo single data (likes count) in php. I tried with json, but had no sucsess:

Why is my Facebook Like button broken?

浪子不回头ぞ 提交于 2019-12-01 12:08:55
问题 I've seen a couple of problems similar to what I'm having, but none of the solutions I've seen work, including the Facebook lint tool. My Facebook-generated code, modulo an escape() of window.location, is presently commented out, and is in what is almost a bare JavaScript include: document.write('<iframe src="http://www.facebook.com/plugins/like.php?app_id=142676242492854&href=' + escape(url) + '&send=false&layout=standard&width=450&show_faces=true&action=like&colorscheme=light&font=verdana

Like Button og: image and og:title not being recognised

断了今生、忘了曾经 提交于 2019-12-01 12:05:12
When using the like button, the defined og:image and og:title do not show on facebook page. Link to example .. It's the like button at bottom of the article and not the one at the top of the page: http://www.nflfc.co.uk/main.php?articleId=221&pageId=3&teamId=3 Using the linter I get the following info which all points to everything being ok but no joy... http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.nflfc.co.uk%2Fmain.php%3FarticleId%3D221%26pageId%3D3%26teamId%3D3 Any help to point me in the right direction into what I am doing wrong will be much appreciated. Adi

How to Add a “Like” Button to my FaceBook Landing Tab?

末鹿安然 提交于 2019-12-01 11:49:22
问题 My FaceBook Page is setup so that users who have not "Liked" the page yet (and attempt to view the page) are presented with the content of a particular tab instead of the default "wall" view. The tab that these users arrive at contains an application I made. It is a simple application that lists information about the business. The application is using the "I Frame" render method (in the application's "Canvas" settings). My goal is to add a FaceBook "Like Button" or "Like Box" inside my

Like count for almost same URL (HTTP, HTTPS)

ε祈祈猫儿з 提交于 2019-12-01 10:03:43
问题 I set like button on every page of my app. But facebook has two modes o viewing pages: unsecured (HTTP) and secured (HTTSP), so how should I do code href in fb:like to show that the same page on http and https should be count by facebook like as rely SAME page? As far as understand facebook like use URL path as uniq ID, so in fb:like tag I write now http://path or https://path depends on protocol that user use coming on my page, so formally this is two different page and facebook count would

Facebook Graph API and FQL like count on photo's both incorrect?

人盡茶涼 提交于 2019-12-01 07:01:03
问题 Hey all, I've made a facebook application for a contest, which allows users to upload their photo. Once uploaded, the photo gets posted to a dedicated album on their profile. Once the photo is there, the users should collect as many likes as possible. Currently i have tried both the Facebook Graph API and Facebook FQL to retrieve the amount of likes, but the retrieved likes don't always match the likes on a users profile. Some users claim to have more then 200 likes, yet the API only returned

MANY FACEBOOK SHARE buttons in the same page?

送分小仙女□ 提交于 2019-12-01 05:15:04
问题 I implemented the facebook share button in my page using javascript, like this: <script type="text/javascript"> $(document).ready(function(){ $('#share_button').click(function(e){ e.preventDefault(); FB.ui( { method: 'feed', name: "{{ user_name }}'s FOF", link: "https://www.example.com/uploader/{{current_fof}}/share_fof/", picture: imgsArray[0].src, caption: window.location.href, description: 'This FOF was taken by {{ user_name }}', message: '' }); }); }); </script> <div class="share"> <img

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

大憨熊 提交于 2019-12-01 03:30:35
This question already has an answer here: The reference to entity “foo” must end with the ';' delimiter 1 answer 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; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document,

Facebook like callback, and post it to target to like

邮差的信 提交于 2019-12-01 01:57:04
when i'm looking at the html source, i look this javascript code <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <script > FB.init({ status: true, cookie: true, xfbml: true }); var username= "gun"; var timenow="1311002200"; var securitykey="ef64ba59d2b0f26d69c94fafb3f008e0"; //pls find a way to capture username either session or something else. FB.Event.subscribe('edge.create', function(response) { document.getElementById(response).style.visibility = "hidden"; document.getElementById(response+'1').style.visibility = "visible"; //response will be $.ajax({ type: "POST",