facebook-like

Do I need “offline_access” permission if I request publish_stream?

别等时光非礼了梦想. 提交于 2019-12-06 12:24:18
For Facebook, I requested email and publish_stream . I got their access_token. yay! Now....when I try to send a POST to their wall (/feed), I get this message: {"error":{"type":"OAuthException","message":"Error validating access token: Session has expired at unix time 1315342800. The current unix time is 1315363038."}} Why? Do I need offline_access? No. From Facebook's documentation : Enables your app to post content, comments, and likes to a user's stream and to the streams of the user's friends. With this permission, you can publish content to a user's feed at any time, without requiring

Does facebook Like Button return any value (PHP)?

被刻印的时光 ゝ 提交于 2019-12-06 12:09:04
问题 I want to execute another function after user like my webpage. Does facebook Like Button return any value like true or false. So I can perform any operation after ? Or is there another alternative ?? 回答1: You'll have to use the Javascript API to do this: FB.Event.subscribe('edge.create', function(response) { console.log("Here is the response %o", response); } ); 回答2: AFAIK, "FB Like" is JavaScript addon (not PHP), but you could bind JS event to like button, that would send some AJAX data to

Facebook like button on Apache Cordova/Phonegap app

╄→гoц情女王★ 提交于 2019-12-06 11:35:38
问题 I have inserted a facebook like button with this methods like a simple web: https://developers.facebook.com/docs/plugins/like-button But the first time that a button is pressed a login window opens. This window opens in the current window, not in a new window. After the user logs in the window try to close itself but it can't. A white window is showed. Next times the like button works correctly because the user is logged in. I also try to implement with the cordova plugin "phonegap-facebook

How to add a facebook like page functionality in iphone app?

删除回忆录丶 提交于 2019-12-06 11:20:03
问题 I have to add "Facebook Like page" functionality in an iPhone app could any body help me how do it. I have searched for it but didn't find any API for iOS. In My app i have to give a like page option to users. Users will like our page and then they will get full access of other contents of our application. How can i know that user have liked our page or not? 回答1: First see my answer here - How to share or post by mail, twitter and facebook from the current application? Here you can learn how

How to remove already generated script tag and re-generate?

感情迁移 提交于 2019-12-06 10:09:55
I am facing a critical problem. I have a page that has two parts. On the first part of the page, the html is rendered through an ajax request. And on the second page, the html is rendered on page load. Fist part of the page is handled separately having different pagination script. Pagination is also handled by sending ajax request to the same url. I have a problem with part one. The script that generates the html for part one is also generating a lot of javascript tags and html using javascript. Now what I am doing when inserting a new script tag in that html is like this: var script =

Facebook “Like” button callback help

只谈情不闲聊 提交于 2019-12-06 09:32:24
问题 I am using this code for facebook like callback: <script type="text/javascript"> FB.Event.subscribe('edge.create', function(response) { // php script to call via ajax }); </script> The problem is that if i call a php script (for example http://www.test.com/addfacebook?id=xx&user=xxx&code=xxxx) someone can see my javascript and run this page and even spam it or use it without have liked first. The concept is that i want to give a unique special discount code to every user likes the page. So on

iOS Facebook Like Button Not Working With iOS App

牧云@^-^@ 提交于 2019-12-06 08:50:27
Trying to add the Facebook Like Button to an iOS App. Followed the directions online and am seeing an issue. Without the Facebook App Installed on Simulator (8.x, 7,x): When pressing the F Like button, we see a transition to Facebook.com but then quickly returns to the iOS App. It does not go to the proper Facebook Like page where the user can like the URL passed. In the iOS app, the openURL method is being called and the Facebook wasHandled = [FBAppCall handleOpenURL: url sourceApplication: sourceApplication]; is being called and it returns YES. Please note that we are also using the Facebook

Facebook like button for a facebook status

落花浮王杯 提交于 2019-12-06 07:14:38
I've pulled some facebook statusses to my website and I would like to add a like-button to them. I can't seem to use the facebook like button generator. When trowing a url like this: http://www.facebook.com/permalink.php?story_fbid=268577716517595&id=224519707563955 in the facebook url linter tool it sais it can't crawl itself. Is there a way to fix this like-button? A way of custom coding a facebook like button? or is the only solution to redirect to this url?(Not an great option, i want the user to stay on my website) I hope anybody has a solution for this. You can perform an like of an

How can I add a custom styled Facebook like / share button on an input-field?

社会主义新天地 提交于 2019-12-06 06:37:44
I don't want to use the normal Facebook like button so how can I add a like / share button to a -Field? luschn It is not allowed to use a custom styled like button, see Brand Permissions: https://www.facebook.com/brandpermissions/ https://www.facebook.com/brandpermissions/logos.php You can only use a custom graphic for sharing, but in your case it would be more appropriate to use a share function anyway (the Twitter button is also for sharing). See here: How to use Facebook Sharer in PHP ...or use the JavaScript SDK of facebook with the FB.ui function. But in that case you would need an app

Facebook Like-Box min-width changed to 292px. Any way to change this behavior?

最后都变了- 提交于 2019-12-06 05:23:28
问题 I've just noticed a change in one of my websites html layout. Everything looked messy and after searching i found out that the cause was that the Facebook Like Box (which min width seems to have changed to 292px) was insisde a 250px container. https://developers.facebook.com/docs/reference/plugins/like-box/ I've had the like-box there for years widh a width=220px and it's kind of awckard that Facebook changed this "legacy" behavior. The box had its place on my site and now i need to figure