从Chrome扩展程序在Facebook上分享 [英] share on facebook from chrome extension
问题描述
我想在Chrome扩展程序的Facebook墙上分享当前打开的标签页。为此,我正在使用 https://facebook.com/share.php ,这是给我登录选项首先再分享框。
I want to share current opened tab url on facebook wall from chrome extension. For that, I was using https://facebook.com/share.php earlier which was giving me login option first and then share box.
由于Facebook已经弃用此方法,如何从Chrome扩展程序发布/分享到我的墙上? FB.api是另一种选择,但是我可能必须先与Facebook进行身份验证。如何通过Chrome扩展来实现这一点?
Since facebook has deprecated this method, how can I post/share on my wall from chrome extension? FB.api is another option but for that I may have to authenticate with facebook first. How can I achieve this from chrome extension?
推荐答案
您可以使用feed对话框,查找更多详细信息 here
You can use feed dialog, find more detail here
这是一个直接的URL
This is a direct URL
https://www.facebook.com/dialog/feed?
app_id=458358780877780&
link=https://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
redirect_uri=https://mighty-lowlands-6381.herokuapp.com/
这篇关于从Chrome扩展程序在Facebook上分享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!