Category : facebook-javascript-sdk

The doc here https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing says "When you use the iOS, Android, or JavaScript SDK, the SDK will automatically refresh tokens if the person has used your app within the last 90 days". I wonder what kind of "use" I should do to have the token refreshed. I tried to get last name of the user ..

Read more

How to generate and use Facebook page access token in FB js sdk. I am doing it as follow: FB.api(id+’?fields=access_token,name’, ‘get’, { access_token: user_access_token }, function(res){ if (res.access_token) { FB.api(url, ‘post’, { access_token: res.access_token, title: "test", status: "LIVE_NOW", description: "description" }, function(res){ // logic to start streaming }); } }) Source: Facebook SDK..

Read more

I’m trying to hide that annoying dialog chat from Facebook chat widget, but the hide attribute is not working. <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ xfbml : true, version : ‘v9.0’ }); }; (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 = ..

Read more

I’ve built a super simple plugin for WordPress which displays share buttons on single posts. Here’s the code: <?php /** * Social buttons */ function zss_share_buttons() { $post_url = esc_url( get_the_permalink() ); // Facebook native button doesn’t play well with encoded URLs $encoded_post_url = urlencode( esc_url( get_the_permalink() ) ); $encoded_post_title = htmlspecialchars( rawurlencode( html_entity_decode( esc_html( ..

Read more

My main desired usecase is to manage the catalog and inventory of a Facebook Shop via API usage (even though I’m not yet a FB developer). From this documentation I get that it is completely posssible: https://developers.facebook.com/docs/commerce-platform/catalog/batch-api Nevertheless I have a couple of doubts. The documentation above is part of the facebook’s "commerce platform" (https://developers.facebook.com/docs/commerce-platform), ..

Read more