是否可以将Facebook订阅源获取到我所属但不拥有的一个封闭组中? [英] Is it possible to get a facebook feed to a closed group that I belong to but do not own?

查看:94
本文介绍了是否可以将Facebook订阅源获取到我所属但不拥有的一个封闭组中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有可能获得rss提要或其他群组留言.但是,每次我在我所属的封闭小组中尝试时,它都不会起作用.如果您不是论坛的管理员或所有者,而只是会员,这可能吗?这是我到目前为止已采取的步骤.

I know it's possible to get an rss feed or whatever for wall posts of groups. However, every time I try it with a closed group that I belong to, it doesn't work. Is this possible if you aren't the admin or owner of a group but just a member? Here are the steps that I've taken so far.

  1. http://developers.facebook.com/setup/ 上创建应用程序li>
  2. 完成后,您将看到应用名称,应用URL,应用ID和应用秘密.复制这些数据.
  3. 访问 https://graph.facebook.com/oauth/authorize?client_id= {CLIENT_ID}& scope = offline_access& redirect_url = {URL}.
  1. Create an application on http://developers.facebook.com/setup/
  2. When you are done, you will see App Name, App URL, App ID, and App Secret. Copy down these data.
  3. access https://graph.facebook.com/oauth/authorize?client_id={CLIENT_ID}&scope=offline_access&redirect_url={URL}.

用您的应用ID替换{CLIENT_ID}.将{URL}替换为您的应用程序URL.

Replace {CLIENT_ID} with your App ID. Replace {URL} with your App URL.

  1. 当提示请求许可"页面时,单击[允许]按钮.
  2. 您将被重定向到{URL}/?code = {您的代码}
  3. 抄下{您的代码}
  4. 访问 https://graph.facebook.com/oauth/access_token?client_id= {CLIENT_ID}& redirect_uri = {URL}& client_secret = {APPLICATION_SECRET}& code = {YOUR_CODE}
  1. When you prompt "Request for Permission" page, click [ ALLOW ] button.
  2. You will be redirect to {URL}/?code={YOUR CODE}
  3. Copy down {YOUR CODE}
  4. Access https://graph.facebook.com/oauth/access_token?client_id={CLIENT_ID}&redirect_uri={URL}&client_secret={APPLICATION_SECRET}&code={YOUR_CODE}

将{CLIENT_ID}替换为您的应用程序ID将{URL}替换为您的应用程序URL 将{APPLICATION_SECRET}替换为您的应用程序密码替换{YOUR_CODE} 与您的{您的密码}

Replace {CLIENT_ID} with your App ID Replace {URL} with your App URL Replace {APPLICATION_SECRET} with your App Secret Replace {YOUR_CODE} with your {YOUR CODE}

点击网址后,您将获得访问令牌.

When you hit the url, you will get access token.

这时我没有访问令牌.

{
"error": {
  "message": "This authorization code has expired.",
  "type": "OAuthException",
  "code": 100
}}

问题是,我刚刚在2秒钟前创建了身份验证代码.它不可能过期了. 因此,只有拥有该访问令牌,我才能按照下面的其余步骤进行操作.

The problem is, I just created the auth code like 2 seconds prior. No way could it have expired. So I can't follow the rest of the steps below until I have that access token.

复制您的访问令牌.

Copy your access token.

现在,使用您的访问令牌访问以下网址.

Now, access the following url with your access token.

http://graph.facebook.com/ {您的组ID}/feed?access_token = {使用权 令牌}

http://graph.facebook.com/{YOUR GROUP ID}/feed?access_token={ACCESS TOKEN}

当您进入论坛页面时,您的网址类似于 /group.php?gid=xxxxxxxxx.在这种情况下,gid是您的组ID.

When you go to your group page, you url is something like /group.php?gid=xxxxxxxxx. In this case, gid is your group id.

推荐答案

要回答您的问题,是的,即使您不是管理员/所有者,也可以访问帖子.如果您可以看到论坛中的所有帖子,则应该没有理由无法使用api访问它们.

To answer your question, yes you can access the posts even if you are not admin/owner. If you can see all posts of a group, there should be no reason not to be able to access them with the api.

首先,检查访问令牌是否已选中"user_groups",否则您将无法访问封闭的组.您可以自己玩图形浏览器,直到获得所需的结果.

First, check if the access token is having 'user_groups' checked, otherwise you will not be able to access a closed groups. You can play with Graph Explorer yourself, till you get the needed results.

如果获取正确的访问令牌后遇到问题,请检查令牌是否未过期.

If you experience problems after you get the right access token, then check if the token is not expired.

这篇关于是否可以将Facebook订阅源获取到我所属但不拥有的一个封闭组中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆