作为Facebook应用程序

作为Facebook应用程序

本文介绍了作为Facebook应用程序(不是作为用户)发布到墙上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取一个access_token 作为应用程序,而不是管理员或用户。这是这样的,我可以发布/评论/喜欢的风格[app name]已经评论你的帖子。

I need to obtain an access_token as an App, not as an admin or user. This is so that I can post/comment/like in a the style of "[ app name ] has commented on your post".

问题是,当我尝试要获得访问令牌(我成功完成了),我正在为我(管理员)获取一个访问令牌,因为我尝试调用时登录:

The problem is that when I attempt to get an access token (which I do successfully), I'm getting one that is for me (the admin) because I'm logged in when I attempt to call:

id]& redirect_uri = [url]& scope = publish_stream,offline_access& type = user_agent& display = popup

https://graph.facebook.com/oauth/authorize?client_id=[app id]&redirect_uri=[url]&scope=publish_stream,offline_access&type=user_agent&display=popup

作为一个应用程序,而不是一个管理员,一个不到期的访问令牌?

What is the process for getting an non-expiring access token AS an app, rather than an admin?

提前感谢

推荐答案

应用程序不是用户。它只代表用户行事。请考虑为您的申请创建一个,并发布页面等。

An application is not a user. It only acts on behalf of users. Consider creating a page for your application and posting such things as the page.

也许我不了解你的应用程序成为自己的愿望。

Perhaps I'm not understanding the desire for your app to be its own being.

这篇关于作为Facebook应用程序(不是作为用户)发布到墙上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:40