[英]Facebook URL scheme to post on a page
Is it possible to post on a page with a url scheme? 是否可以在具有url方案的页面上发布?
I currently have this, fb://profile/325899700848032 我目前有这个,fb:// profile / 325899700848032
But this only opens the page ofcourse. 但这只会打开课程页面。 What i mean is something like this fb://profile/325899700848032/PostMessage/"test message" or ../PostImage/image
我的意思是这样的东西fb:// profile / 325899700848032 / PostMessage /“测试消息”或../PostImage/image
Is anything like this possible to do? 这样可以做吗?
Thanks! 谢谢!
To post on facebook page you need to ask first for the famous manage_pages
authorization. 要在facebook页面上发布,您需要首先要求提供著名的
manage_pages
授权。 Once you have it you make a FBRequest on the openGraph for me/accounts
which return an array of the current user pages and other application. 拥有它后,您可以在openGraph上为
me/accounts
创建FBRequest,该FBRequest返回当前用户页面和其他应用程序的数组。 You parse this json for each page and you pick the token_access
and the id
. 您为每个页面解析此json,然后选择
token_access
和id
。 You then set the page token access on your facebook manager and then you can post for example a picture to the page with the "{id}/photos"
POST graph request {id}
being the page id. 然后,您可以在Facebook管理器上设置页面令牌访问权限,然后可以将例如“图片”的图片发布到页面上,其中
"{id}/photos"
POST图形请求{id}
是页面ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.