facebook-share

Javascript Facebook share dialog with open graph “og:url” not working

本小妞迷上赌 提交于 2019-12-02 11:47:53
问题 I am currently using the javascript Facebook share dialog API version 3.2 as follows: FB.ui( { method: "share_open_graph", action_type: "og.likes", action_properties: { object: { "og:title": "Test Title", "og:description": "Test description here", "og:image": "https://url-to-image-here", "og:url": "https://google.com" } } }, (fbResponse: any) => { // handle response here. } ); When i include the og:url with a non-empty value, I keep getting the following response when the dialog loads

Facebook API Share open graph Issues

痞子三分冷 提交于 2019-12-02 10:09:39
问题 Since a few days , Facebook share via the implementation of share_open_graph no longer works correctly. Its seems it's the open graphs metatags found on the og:url which are scraped. Is anyone having the same issue ? FB.ui({ method: 'share_open_graph', action_type: 'og.shares', action_properties: JSON.stringify({ object: { 'og:url': FBLink, 'og:title': FBTitle, 'og:description': FBDesc, 'og:image': FBPic, 'og:locale': 'fr_FR', 'og:image:width': 540, 'og:image:height': 281 } }) }, function

Facebook sharing using Fragments

风流意气都作罢 提交于 2019-12-02 09:22:07
问题 I am using Facebbok sharing in my app,i have one listview and in my list item i have one Button ,on click of the Button i am trying to share my stuffs,but the issue is my code works fine when i extend my class with activity,but it does not work with Fragment ,Following is my snippet code,any help TestFrag.java public class TestFrag extends Fragment{ static CallbackManager callbackManager; private static LoginManager manager; ListView list; Button btnPost; Context context; static Activity

php form textarea text on facebook share when click on button

我与影子孤独终老i 提交于 2019-12-02 08:38:31
i have form and in form text area and submit button when i click on submit button and share data taken homepage banner and text not textarea text <form id="facebook-form" method="post"> <ul class="form-list"> <li> <label for="facebook-content"><?php echo $this->__("Post on Facebook") ?>:</label> <div class="input-box"> <textarea id="affiliate-facebook-content" class="required-entry"><?php echo $this->getDefaultSharingContent() ?></textarea> </div> </li> </ul> <div class="buttons-set"> <button type="button" class="button" title="<?php echo $this->__('Post on Facebook') ?>" onclick=

Facebook sharing using Fragments

十年热恋 提交于 2019-12-02 06:36:15
I am using Facebbok sharing in my app,i have one listview and in my list item i have one Button ,on click of the Button i am trying to share my stuffs,but the issue is my code works fine when i extend my class with activity,but it does not work with Fragment ,Following is my snippet code,any help TestFrag.java public class TestFrag extends Fragment{ static CallbackManager callbackManager; private static LoginManager manager; ListView list; Button btnPost; Context context; static Activity activity; ArrayList prgmName; public static int[] prgmImages = {R.drawable.ic_launcher, R.drawable.ic

Facebook API Share open graph Issues

早过忘川 提交于 2019-12-02 04:41:57
Since a few days , Facebook share via the implementation of share_open_graph no longer works correctly. Its seems it's the open graphs metatags found on the og:url which are scraped. Is anyone having the same issue ? FB.ui({ method: 'share_open_graph', action_type: 'og.shares', action_properties: JSON.stringify({ object: { 'og:url': FBLink, 'og:title': FBTitle, 'og:description': FBDesc, 'og:image': FBPic, 'og:locale': 'fr_FR', 'og:image:width': 540, 'og:image:height': 281 } }) }, function (response) { // Action after response }) 来源: https://stackoverflow.com/questions/55901886/facebook-api

Javascript Facebook share dialog with open graph “og:url” not working

不羁岁月 提交于 2019-12-02 04:09:17
I am currently using the javascript Facebook share dialog API version 3.2 as follows: FB.ui( { method: "share_open_graph", action_type: "og.likes", action_properties: { object: { "og:title": "Test Title", "og:description": "Test description here", "og:image": "https://url-to-image-here", "og:url": "https://google.com" } } }, (fbResponse: any) => { // handle response here. } ); When i include the og:url with a non-empty value, I keep getting the following response when the dialog loads regardless of the url I use: Facebook response with og:url defined If I do not define the og:url or assign it

FaceBook ShareLinkContent setImageUrl is replaced by ContentUrl metadata in android

℡╲_俬逩灬. 提交于 2019-12-02 02:39:18
问题 I am using facebook version 4.14 in my app inorder to share Hashtag along with Imageurl and Contenturl using ShareLinkConent. Now Hashtag is successfully posted inFacbook . But unfortunately , in Facebook feed, imageurl is replaced by content url metadata. I am attaching the FaceBook feed screenshot here. In that instead of image url i am getting the Content Url metadata image. Please let me know what i am doing wrong here. I am posting my code below ShareHashtag shareHashTag = new

Android Facebook SDK FacebookDialog.shareDialogBuilder doesn't show my description

ⅰ亾dé卋堺 提交于 2019-12-01 08:17:47
I'm using the Facebook Android SDK to post a share from my Android app, setting the link to the Google Play url but I want to fill in my own description to be displayed. My description shows up in my preview when I'm posting from my app, but when it gets displayed all that shows is "GET IT ON GOOGLE PLAY" and my description has disappeared. I am modifying code taken from the Facebook share tutorial included in the SDK (currently using version 3.19.0), here is the ShareDialogBuilder code: private FacebookDialog.ShareDialogBuilder createShareDialogBuilderForLink() { return new FacebookDialog

Android Facebook SDK FacebookDialog.shareDialogBuilder doesn't show my description

痞子三分冷 提交于 2019-12-01 07:24:26
问题 I'm using the Facebook Android SDK to post a share from my Android app, setting the link to the Google Play url but I want to fill in my own description to be displayed. My description shows up in my preview when I'm posting from my app, but when it gets displayed all that shows is "GET IT ON GOOGLE PLAY" and my description has disappeared. I am modifying code taken from the Facebook share tutorial included in the SDK (currently using version 3.19.0), here is the ShareDialogBuilder code: