facebook-social-plugins

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

Tracking like button referrals from Facebook using the 'fb_ref' parameter in our code

穿精又带淫゛_ 提交于 2019-12-12 11:35:14
问题 We would like to use the Attribute fb_ref - the ref parameter in a like button (in order to track referral clicks and conversions). Do you have a tutorial or example of how this works on our pages? 回答1: When you use the ref parameter on a like button, clicks back to your website which were generated by that Like button, contain two extra parameters in the referrer: fb_ref , containing the same value you gave to ref , and fb_source which shows where on Facebook the story was clicked. This is

FB Like button shows up only once - on first load of my AngularJS view

99封情书 提交于 2019-12-12 07:58:39
问题 I am trying to place the FB like button on my single page site built on Angular JS. The like button has to be displayed on a view (different than the index.html) displayed by a controller. But the like button shows up only for the first time I load that particular view. The button do not show up if I come back after visiting another view. Below is the code which loads FB SDK in the controller for the view - (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d

Facebook Login from custom UI in android

对着背影说爱祢 提交于 2019-12-12 04:56:37
问题 I am trying to implement Facebook login feature through my custom UI. I use following code that is given on facebook developer page private Session.StatusCallback statusCallback = new SessionStatusCallback(); private static final String TAG = "MainFragment"; private void onClickLogin() { Session session = Session.getActiveSession(); if (session != null) { if (!session.isOpened() && !session.isClosed()) { session.openForRead(new Session.OpenRequest(this).setPermissions(Arrays.asList("public

Facebook share button is sharing my login page instead of current page URL, title, etc

自作多情 提交于 2019-12-12 02:29:53
问题 I have added facebook share button to my webpage using this code: <a name='fb_share' border="0">Share</a> <script type='text/javascript' src='jquery.js'> </script> <script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'> </script> The above code shares the current webpage properly but when I included a session check at the start of the webpage where I redirect the user to the login page if valid session doesn't exist the above code always shares the login page

How to Style Facebook Activity Feed

那年仲夏 提交于 2019-12-12 02:28:10
问题 How do you implement custom css on a Facebook activity feed plugin? This related post does not fully answer the question. Is this the right way? Where does the <fb:tag name='link'></fb:tag> go? Inside of of the <fb:activity site="..." app_id="..." ></fb:activity> outside of it, before or after? I'm sort of confused... 回答1: Facebook PHP SDK: https://github.com/facebook/php-sdk Comes with some simple examples, I would suggest uploading it to your server and tinkering with it, Facebook has a

Facebook Comment box inside UIWebView doesn't have the right height

懵懂的女人 提交于 2019-12-11 19:29:10
问题 I am trying to load the following html inside a UIWebView. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : 'myAppId', status : true, xfbml : true }); FB.Event.subscribe("xfbml.render", function(response) { FB.Canvas.setSize(); }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0];

Object Debugger and Graph API return different objects for same URL?… “Likes” plugin creates separate object?

南楼画角 提交于 2019-12-11 07:27:06
问题 I used the Open Graph to define a custom object that has a plethora of meta tags. When I use the Object Debugger / URL Linter (found here: https://developers.facebook.com/tools/debug) and input my page URL that has the appropriate meta tags, Facebook scrapes my page exactly as expected, returning an object with all my meta-data as well as a unique facebook ID. This is what the Object looks like: { "url": "http://mysite.com/8/the-dali-lama-returns", "type": "mysite:event", "title": "The Dali

facebook share HTML5 TypeError: getComputedStyle(…) is null

自作多情 提交于 2019-12-10 03:49:22
问题 I'm trying to add facebook share to a page. My issue is with multiple share buttons, first works well but others aren't shown in the page. A note, first share button is visible but others are in a container with display:none css applied. I have this code in top of the page (I changed facebook app Id to FacebookAppID): <div id="fb-root"></div> <script>(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

Facebook fan-box stopped respecting the “css” attribute?

社会主义新天地 提交于 2019-12-08 04:50:08
问题 Looks like this doesn’t work anymore. Maybe Facebook stopped respecting the “css” attribute? Does this still work for anyone? 回答1: Facebook has deprecated the Fan Box (introduced in 2009) in favor of the new Like Box. While the features of each are similar, they use different JavaScript APIs. You can still customize the appearance of the Fan Box with your own external CSS, but it's unclear how long Facebook will continue to support this ability. Here's some sample FBML code that shows how the