fb.ui

Dynamically generate description for explicitly shared open graph story through FB.ui Share Dialog

五迷三道 提交于 2019-11-30 05:27:11
Of all of the research I've done on this topic, 90% of it is outdated, which brings me to believe there have been recent changes to the Facebook JS SDK regarding explicitly sharing Open Graph stories. I have the following code: function postToFB(desc){ FB.ui({ method: 'share_open_graph', action_type: 'mynamespace:myaction', action_properties: JSON.stringify({ myobject: "myobjectid" }) }, function(response){}); } The problem with this is that it will attempt to share myobject with only the settings I've set up in the Facebook Open Graph section of my app settings. I would like to use the same

Method FB.ui loads forever when called on Firefox and Internet Explorer

霸气de小男生 提交于 2019-11-30 05:25:21
I have problem in a script that was working until 3 or 4 days ago. I'm using this (simplified version) code to send an app request to a user and it was working until few days ago, now it seems that something in facebook has changed and the window (wich is opened in iframe automatically) loads forever in Firefox and Internet Explorer. It continues to work normaly. I Know that I can force the parameter display: 'popup', but sending the request after some other javascript lines it means that firefox blocks the popup opening and so it is useless for me. function Test() { FB.ui({method:

Method FB.ui loads forever when called on Firefox and Internet Explorer

混江龙づ霸主 提交于 2019-11-29 03:38:22
问题 I have problem in a script that was working until 3 or 4 days ago. I'm using this (simplified version) code to send an app request to a user and it was working until few days ago, now it seems that something in facebook has changed and the window (wich is opened in iframe automatically) loads forever in Firefox and Internet Explorer. It continues to work normaly. I Know that I can force the parameter display: 'popup', but sending the request after some other javascript lines it means that

Facebook stops custom parameters (image,title,description) through FB.ui?

♀尐吖头ヾ 提交于 2019-11-29 00:23:46
Today I check my site and this code not working: <script> ... FB.ui({ display: 'dialog', method: 'share_open_graph', action_type: 'og.likes', hashtag: '#Testing', action_properties: JSON.stringify({ object: { 'og:image': img, 'og:image:secure_url': img, 'og:image:type': 'image/jpeg', 'og:image:width': w, 'og:image:height': h, 'og:image:alt': img, 'og:url': link, 'og:title': title, 'og:description': desc, 'fb:admins': fbadmin } }) }, function(response) { if (typeof response != 'undefined') { //Success } else { //Not Success; } }); </script> With this code, from https://developers.facebook.com

Using “share_open_graph” Facebook UI to create dynamic share dialog for quiz results

白昼怎懂夜的黑 提交于 2019-11-28 15:39:20
Summary: My problem is getting FB.ui , via the share_open_graph method, to create a customised share dialog that contains different title, description, and picture, based on the user's actions on the page. The question was my first and I had no reputation, so numerous links were removed, but (thanks to everyone who gave me upvotes) I have been able to rescue the screenshots that were originally missing. EDIT: I ended up having to just use a regular popup window with a share dialog in it, it's not ideal but at least it works reliably. The more I looked around the web the more I found that many

FB.ui share set the title, message and image

故事扮演 提交于 2019-11-27 01:58:03
问题 I'm using FB.ui to share a page to Facebook and I'm trying to set the title and message (image if possible but not important). I have this in my site header <meta property="og:title" content="Your title here" /> <meta property="og:description" content="your description here" /> And my javascript code is FB.ui({ method: 'share', href: document.URL, }, function(response){ //TODO Proper response handling log(response); if (typeof response != 'undefined') { alert('Thanks for sharing'); } }); From

Send private messages to friends

我的未来我决定 提交于 2019-11-26 01:56:37
问题 I need to get via Facebook connect user\'s info and send a private message to all of his friends. Is it possible? 回答1: Sending private message through api is now possible. Fire this event for sending message(initialization of facebook object should be done before). to:user id of facebook function facebook_send_message(to) { FB.ui({ app_id:'xxxxxxxx', method: 'send', name: "sdfds jj jjjsdj j j ", link: 'https://apps.facebook.com/xxxxxxxaxsa', to:to, description:'sdf sdf sfddsfdd s d fsf s ' })