我正在使用Facebook的Graph ApI来成功创建活动及其创建活动,但是我想发布(因为我们通常在共享活动或在朋友墙上发布活动)活动,所以我尝试使用EVENT_ID / Feed进行尝试,但我认为我做错了所以任何人都可以帮助解决问题
That's the case of a simple post with a link.
Send a POST
request to FRIEND_ID/feed
with the link
parameter corresponding to your event URL.
Here is the Javascript:
var body = "";
var myname = "";
var myLink = "";
var myDescr = "";
FB.api('/me/feed', 'post', { privacy: { "value": "EVERYONE" }, message: body, name: myname, link: myLInk, description: myDescr }, function (response) {
if (!response || response.error) {
console.log(response.error);
} else {
//DO SOME STUFF
}
});
Body is the Message, myname the Title of your Shared Link, myLink the link and myDescr a short description for your link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.