facebook-javascript-sdk

facebook graph api - missing fields

青春壹個敷衍的年華 提交于 2019-12-13 01:48:52
问题 I'm trying to make a facebook application which deals mostly with posts in facebook groups. So, when i access the feed from my app, some fields are missing. When i access the same post over facebook, those fields are visible. Eg: A photo uploaded by a user is not visible when accessed via graph. It hides the photo field. Later i found that whatever photos that specific user uploaded, I couldn't access it via graph api. Does anyone know the reason? Does it have something to do with permissions

How do you do clickthrough tracking via the FB Share Dialog?

夙愿已清 提交于 2019-12-13 01:29:17
问题 According to Facebook's documentation for the Share Dialog, you can use Javascript to trigger open a share dialog so that the user can share whatever URL you pass in: FB.ui({ method: 'share', href: 'https://developers.facebook.com/docs?myTrackingParam=topShareButton', }, function(response){}); However, if you want to do any referral tracking by appending a query string to the href property gets stripped, since the FB uses the og:url meta tag when it crawls the URL. I use the query params to

Catching the close or post to Facebook event of the Facebook comment box

ε祈祈猫儿з 提交于 2019-12-13 00:47:15
问题 The new Facebook like button has a comment box, as you can see on the screenshot below. I am using Facebook their XFBML solution to display the like button on my page. Using JavaScript I manages to catch the event that is triggered when the like button is pressed but now I need a way to detect if the user pressed the "Post to Facebook" button or closed the dialog box. Here is the code snippet that works for the like button event: (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0

Facebook API send inbox messages (custom dialog)

柔情痞子 提交于 2019-12-13 00:12:26
问题 I'd trying to send private messages through Facebook API. I have already implement the FB Send Dialog through the JS SDK. The problem is that I'd like to create something customized, like the example below, took from www.joingrouper.com. Does anyone know how this is done? Thanks! 来源: https://stackoverflow.com/questions/21998353/facebook-api-send-inbox-messages-custom-dialog

FB.logout() - no access token - “Log in as Different User”

纵然是瞬间 提交于 2019-12-12 21:02:45
问题 This question is in relation to this question: FB.logout() called without an access token I had a question i was hoping someone could help with. I get everything in the link above, but how do you handle when someone uses a public computer and leaves themselves logged in to FB by accident? Then a new user tries to log in to an app, but it is not them. I want to have a button to log them out of FB altogether to "log in as a different user". I cannot do that until they authorize the app, right?

Facebook Social Plugins comments section hidden by classname (ReactJS)

て烟熏妆下的殇ゞ 提交于 2019-12-12 17:33:24
问题 I'm using ReactJS (developped by Facebook) and I'm currently having issues displaying a Comment secton from Facebook Social Plugins... kind of ironic but hey, they haven't made a plugins themselft for react. Anyway, I have inserted the diffent element in my code to add the comment section. When I'm loading the page, I can see the section is loading! (for less than a second) but it desappear quite rapidly. I checked the code generated by facebook and I found that it was adding in the class of

Facebook auth dialog (JS SDK) returns blank screen

坚强是说给别人听的谎言 提交于 2019-12-12 15:04:42
问题 I'm setting up a rails app and trying to implement login via Facebook JS SDK. Missing Omniauth already... :( Anyway, what happens is that the dialog pops up, the user provides the login info, but then it redirects to https://www.facebook.com/connect/window_comm.php?_id=some-string&_relation=opener&auth_token=some-big-string , a blank screen. The pop-up doesn't close. If I close it manually, though, and then refresh my page, I can see the login happened. A curious thing is that on the first

Facebook 'send' dialog to multiple friends

徘徊边缘 提交于 2019-12-12 11:44:45
问题 The idea is that the user can request feedback on what they have made from a couple of friends. I have a friend selector which is working great. From here I get the user id's. I then call the send dialog and instead there being multiple recipients there is only one. Does anyone know why? FB.ui({ method: 'send', name: 'Test', to: formattedContacts, link: 'http://google.com' }); If I log the formattedContacts I get the following. (id's removed) ["11111", "222222"] The send dialog appears fine

FB is not defined in Facebook Login

£可爱£侵袭症+ 提交于 2019-12-12 10:46:57
问题 I have the following code but the FB.login gives a FB is not defined javascript error. What am I missing? <html> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init ({ appId : 'XXXX', status : true, cookie : true, xfbml : true }); }; (function() { var e = document.createElement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); FB.login(function(response)

does facebook embedded video api still support removeListener()?

荒凉一梦 提交于 2019-12-12 09:57:15
问题 According to facebook documentation - https://developers.facebook.com/docs/plugins/embedded-video-player/api , we subscribe to player events var handleDesktopEvents = function (msg) { if (msg.type === 'video') { var player = msg.instance; var playHandler = player.subscribe('startedPlaying', function() { // Video started playing ... player.unmute(); console.log('detected video playing'); ga_virtual_pagehit(msg.id); console.log('sent event to GA'); playHandler.removeListener('startedPlaying');