facebook-javascript-sdk

FB.login not working in mobile browsers

十年热恋 提交于 2020-01-02 00:33:06
问题 This is not native solution, just responsive web site.. The problem is, that FB.login simply doesn't do anything. The same goes for FB.ui methods.. i call fb init in head (but also tried in body with same results..) like this: <script type="text/javascript"> FB.init({ appId: '{$app_id}', status: true, cookie: true, xfbml: true, channelUrl: 'https://www.nottyfly.com/channel.php', oauth: true }); When user clicks fb login button, the code is like this: function fbLogin(){ FB.login(function

offline_access permission not present in Graph api explorer in facebook graph api

柔情痞子 提交于 2020-01-02 00:13:09
问题 i've created a facebook Application today for my website i'm requesting access_token through javascript sdk with scope=manage_pages,offline_access,read_insights i figured out that offline_access was not given for the application newly created rest of the permission was granted but i've already made two application through that i can able to get offline_access scope for my access token my question is, Is there any updates included in the new Javascript sdk . steps to reproduce: 1.create an

offline_access permission not present in Graph api explorer in facebook graph api

▼魔方 西西 提交于 2020-01-02 00:12:10
问题 i've created a facebook Application today for my website i'm requesting access_token through javascript sdk with scope=manage_pages,offline_access,read_insights i figured out that offline_access was not given for the application newly created rest of the permission was granted but i've already made two application through that i can able to get offline_access scope for my access token my question is, Is there any updates included in the new Javascript sdk . steps to reproduce: 1.create an

What is the X-FB-DEBUG header returned from Facebook?

爷,独闯天下 提交于 2020-01-01 23:52:26
问题 I'm wondering what the header mentioned above is. It's included in the response when I do JSONP calls to Facebook, or even when I simply access http://static.ak.fbcdn.net/ I haven't found any documentation on facebook, e.g. on https://developers.facebook.com/docs/reference/ads-api/etags-reference/ So, hope somebody can help me. thx! 回答1: To me, this seems to be a request tracking id, so that Facebook can find and trace an specific request details [faster] when you fill in a bug report. Have

Facebook JS SDK Progressive web app issue

删除回忆录丶 提交于 2020-01-01 09:32:21
问题 I have a Progressive Web App built with Angular 4. My Problem is the Fb login dialog does not close automatically when used from the home screen app. It works perfectly fine when opened in chrome browser but when i use it from installed home screen app the dialog window opens asks for permissions, after all permission is given the dialog goes blank and does not close or redirects back to the app. It seems like if i change the "display" in manifest.json to "browser" it works but does not work

How to upload video on facebook using FB.ui Javascript sdk

☆樱花仙子☆ 提交于 2020-01-01 05:32:26
问题 I'm using FB.ui method to post image to facebook as described below: FB.ui({ display: 'popup', method: 'feed', name: 'image', link: 'link', picture: 'image path', caption: 'caption', description: 'description' }, function(response){ // do something }); I'm able to post image successfully, but couldn't post video. I have tried, but failed. FB.ui({ display: 'popup', method: 'feed', link: 'link', picture: 'thumbnail image path', source: 'https://example.com/media/video.mp4', caption: 'caption',

Chrome-only cross-domain scripting errs in Facebook iFrame App upon FB.Login(..)

只愿长相守 提交于 2020-01-01 05:15:22
问题 In Google Chrome (I'm on 9.0.597.98) my Facebook iFrame app using Graph API/Javascript SDK tends to always throw the following two JavaScript errors (see below) based on cross-domain scripting, but only on one page of the app. It goes into an endless retry loop on the second message. After leaving it overnight, it reported a half million retries by this morning! The FB call being used is for login: FB.login(function(response) { if (response.session) { // user successfully logged in } else { /

Why is my Facebook purchase tracking (via javascript) working inconsistently?

こ雲淡風輕ζ 提交于 2019-12-31 05:42:12
问题 Because I do not want Facebook to double-count purchases, I store in my database whether I've already triggered a purchase tracking event for a given customer of mine. And so my code below knows not to run more than once per customer (because my view leaves $('#facebookTrackingPurchaseValue').val() empty if it has already run before). $(document).ready(function () { var redirectUrl = decodeURIComponent(decodeURIComponent(handleParams.urlParams.url));//needs to be double-decoded; see

Unsafe JavaScript attempt to access a frame when using secure browsing on Facebook

*爱你&永不变心* 提交于 2019-12-31 03:12:09
问题 I've launched an application last week and have noticed since that in Chrome only the height of my canvas is not always adjusted. I've spent a bunch of hours looking at the issues and noticed that I get the following error - sometimes. Unsafe JavaScript attempt to access frame with URL https://apps.facebook.com/tabletr/ from frame with URL http://static.ak.facebook.com/connect/canvas_proxy.php?version=3#behavior=p&method=getPageInfo&params=%7B%22channelUrl%22%3A%22https%3A%2F%2Fs-static.ak

Facebook Like Box social plugin doesn't work with Turbolinks

佐手、 提交于 2019-12-31 01:33:28
问题 I'm using the Like Box social plugin (https://developers.facebook.com/docs/reference/plugins/like-box/) and it works great. Problem is that I'm using it within a Rails 4 application with Turbolinks. Whenever I reload a page, the like box shows up. If I click on any link, the next page loads and the Like Box doesn't show up. I tried this already but didn't worked =/ http://reed.github.io/turbolinks-compatibility/facebook.html Any ideas on how to solve this problem? 回答1: The link you have