Facebook API 分享未提供任何细节的回复
Facebook API share response not giving any details
FB.ui({
method: 'feed',
type: 'video',
caption: text,
link: url,
description: text,
source: url,
picture: pictureEncode
}, function(response){
if (response && !response.error_code) {
console.log("OK: "+JSON.stringify(response));
} else {
console.log("Not OK: "+JSON.stringify(response));
}
});
我尝试分享我的 YouTube 视频,并且成功了。但我需要确定用户是否取消了视频共享。在回复中我没有得到任何有用的 values.They 如下所示。
constructor
:
function Object()
hasOwnProperty
:
function hasOwnProperty()
isPrototypeOf
:
function isPrototypeOf()
propertyIsEnumerable
:
function propertyIsEnumerable()
toLocaleString
:
function toLocaleString()
toString
:
function toString()
valueOf
:
function valueOf()
defineGetter
:
function defineGetter()
defineSetter
:
function defineSetter()
lookupGetter
:
function lookupGetter()
lookupSetter
:
function lookupSetter()
get proto
:
function proto()
set proto
:
function proto()
所以帮我解决这个问题。谢谢
https://developers.facebook.com/docs/sharing/reference/feed-dialog
看一下响应参数,有一个重要的文字:
...post_id requires your app to have publish_actions granted, and for
the user to share to their timeline or a group.
如果用户使用 publish_actions
授权应用程序,post_id
只会出现在分享后的响应中。
确保您也阅读了平台政策,您不得激励用户在他们的墙上分享内容(奖励、入口内容):
4.5 Only incentivize a person to log into your app, enter a promotion on
your app’s Page, or check-in at a place. Don’t incentivize other
actions.
FB.ui({
method: 'feed',
type: 'video',
caption: text,
link: url,
description: text,
source: url,
picture: pictureEncode
}, function(response){
if (response && !response.error_code) {
console.log("OK: "+JSON.stringify(response));
} else {
console.log("Not OK: "+JSON.stringify(response));
}
});
我尝试分享我的 YouTube 视频,并且成功了。但我需要确定用户是否取消了视频共享。在回复中我没有得到任何有用的 values.They 如下所示。
constructor : function Object() hasOwnProperty : function hasOwnProperty() isPrototypeOf : function isPrototypeOf() propertyIsEnumerable : function propertyIsEnumerable() toLocaleString : function toLocaleString() toString : function toString() valueOf : function valueOf() defineGetter : function defineGetter() defineSetter : function defineSetter() lookupGetter : function lookupGetter() lookupSetter : function lookupSetter() get proto : function proto() set proto : function proto()
所以帮我解决这个问题。谢谢
https://developers.facebook.com/docs/sharing/reference/feed-dialog
看一下响应参数,有一个重要的文字:
...post_id requires your app to have publish_actions granted, and for the user to share to their timeline or a group.
如果用户使用 publish_actions
授权应用程序,post_id
只会出现在分享后的响应中。
确保您也阅读了平台政策,您不得激励用户在他们的墙上分享内容(奖励、入口内容):
4.5 Only incentivize a person to log into your app, enter a promotion on your app’s Page, or check-in at a place. Don’t incentivize other actions.