facebook-javascript-sdk

Facebook Graph publish posts with link and custom picture not working on v2.9

故事扮演 提交于 2019-11-28 14:01:56
I remember when I was using Graph v2.8, I could set custom picture and caption for link. Now it is impossible for v2.9. Is there some kind of workaround without specifying og: tags. How it was on v2.8: How it is now on v2.9: Unfortunately there is currently NO publicly known workaround. According to facebook developers blog: As part of our continuing efforts to stop the spread of misinformation and false news on our platform, earlier this year at F8 we announced an important change to our Graph API: Graph API version 2.9 includes a 90 day deprecation of the ability to edit previews attached to

Facebook like button on posts not working properly

别说谁变了你拦得住时间么 提交于 2019-11-28 12:39:06
问题 I am using open graph for the first time. In any url like this you you can see a like button for the site's facebook page at top and another like button after the heading and summary of the article. The second like button is not working as required. If I like from that link then instead of the article the website's facebook page gets liked and the information which I want to show to other facebook users who see that like post is the summary of the article but instead it show that the person

Given URL is not allowed by the Application configuration

扶醉桌前 提交于 2019-11-28 09:53:11
I am trying to use the Facebook javascript sdk for my chrome extension. Since it is a chrome extension how do i integrate it with facebook? is it an app on facebook.com or a website? Currently i have it as a website. my site url on the settings is: http://localhost/Users/home/Documents/facebook/ i have also enabled web sharing on my mac. do i need to set the site domain as well? what am i doing wrong here? Enter http://localhost/Users/home/Documents/facebook/ as your "Site Domain" on the developer app: https://developers.facebook.com/apps/ {api_key}/summary Replace {api_key} with yours; or

Difficulty posting Actions to Timeline

試著忘記壹切 提交于 2019-11-28 09:25:10
问题 I've tried building the basis of our next app following Facebook's Open Graph Tutorial but for some reason I'm getting errors thrown at me regardless of how I try POSTing an action. I'll go as in-depth as I can here as I hope it'll be very useful for all developers getting to grips with the new Timeline. I've defined a battle action and a hero object using the default settings when setting up each. transcendgame is my namespace. $id is the userid of the Facebook user (I've tried using /me/,

How to force Facebook JS-SDK to render dynamically added widgets?

人走茶凉 提交于 2019-11-28 09:14:05
The content within the app is being updated using XHR. This involves changing the URL of the comment box: <div class="fb-comments" data-href="http://example.com?id=[dynamic]" data-num-posts="2" data-width="470"></div> Upon creating a new Facebook widget placeholder after the page been fully loaded, how do I request Facebook JS SDK to render new elements on the page? Call the JavaScript SDK's FB.XFBML.parse(); function after you dynamically insert the fb-comments div. See: http://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/ 来源: https://stackoverflow.com/questions/9454896

forge.facebook.ui callback invoked with null on iOS

天涯浪子 提交于 2019-11-28 09:08:01
问题 I'm having trouble with Trigger.io Forge and getting a callback from a native FB friend selector UI. The problem is only showing on iOS, works fine on Android. Running this code in catalyst on either iPhone device or simulator causes the FB dialogue to show correctly. >forge.facebook.ui({ method: 'apprequests', message: 'Hey' }, function(a){console.log('success: '+JSON.stringify(a))}, function(error) {console.log('error:'+JSON.stringify(error))}); >undefined >success: null When selecting some

Redirect from Facebook canvas page to website

岁酱吖の 提交于 2019-11-28 08:42:59
Is there a way to redirect from my Facebook canvas page to my external website? I've seen blogs and stackoverflow answers of the form: <script> window.top.location = 'http://www.yoursite.com/'; </script> Unfortunately these kinds of solutions never work. I've tried top.location.href, window.location and location.href as well.. nothing works. Did Facebook remove the possibility to redirect from javascript by parsing out this kind of code? Is there a way to still redirect? UPDATE : What happens is the webpage acts like there was never a javascript redirect instruction. And in fact, when I look

What am I doing wrong in localhost Facebook app development?

夙愿已清 提交于 2019-11-28 08:40:38
App Domains: localhost Website with Facebook login: http://localhost/auth I go to http://localhost/auth/ and in my Chrome developer console I see the error: Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. I do a view-source to see the following: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text

“Failed to load resource” using Facebook's example code

 ̄綄美尐妖づ 提交于 2019-11-28 08:08:59
I'm trying to run the first example from the documentation of the Facebook JS SDK. I created a new app, created a blank document called "facebookTest.html", pasted in the code from the example, and plugged in the new app's App ID. Code as follows: <html> <head> <title>Login with facebook</title> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : 'my app ID', // App ID from the App Dashboard status : true, // check the login status upon init? cookie : true, // set sessions cookies to allow your server to access the session? xfbml : true /

Facebook NoAuthorizationError after passing signed_parameters manually

吃可爱长大的小学妹 提交于 2019-11-28 07:57:20
问题 I've had a lot of issues trying to get the client-side login to work, so I'm going to take the liberty of referencing a ton of other questions here... none have resulted in an answer that has worked for me. CONTEXT Server-side login works fine Client-side login using JS SDK works fine on Safari* (have not tested in Firefox or IE or mobile non-Chrome), but not in Chrome , which is what this question is about (and majority of my users use Chrome so it's super important) Gem versions: ruby (2.1