Facebook Graph不允许我访问公共团体中的任何相册 [英] Facebook Graph will not let me access any photo albums from a public group

查看:119
本文介绍了Facebook Graph不允许我访问公共团体中的任何相册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从"WirralGSB"小组的一张公开相册中获取照片时,我遇到了一些麻烦-我最初是在10月建立了该网站,直到几天前还不错.我认为问题出在我没有访问密钥.我通过自己制作的应用程序制作了访问密钥,但是这些密钥仅在30分钟左右有效,然后它们过期了,网站不再显示图像.该网站为: http://wirralgrammarboys.com/news/109 此页面-应当-包含一张Facebook相册,但没有.有没有办法生成不会过期的访问密钥?您可能还应该知道,我不是该组的管理员,只是普通"成员,尽管我可以指示管理员在必要时进行更改.

I am having a bit of trouble grabbing photos from a public album from the group 'WirralGSB' - I set the website up in October originally and it was fine until a couple of days ago. I think the issue lies in that I do not have an access key. I made an access key through an app that I made but these were only valid for 30 minutes or so and then they expired and the website no longer displays the images. The website is: http://wirralgrammarboys.com/news/109 this page --should-- contain a facebook album but doesn't. Is there a way of me generating an access key that will not expire? You should also probably know that I am not an administrator of the group, just a 'normal' member, although I can instruct the admin to make changes if necessary.

我在函数中使用的代码是:

The code I'm using in the function is:

var graph = "https://graph.facebook.com/<?php echo $row[ALBUMID]; ?>"
+ "/photos?limit=20" + "&access_token=CAACNTB50S2IBAIzMYWdNsNFSVAPbkUgQKm1TGX6kNzlIDvQr2BLUKURdZBMqaZBmLLWKhZC8kE9Qcet4UMvq5ZAwDLaSf36d1jZAaBbyAtA0ze6HiI5jfKXjLxLT1sl0ZCdZCydlZCFMdIZCTZAEQ59GxOpNVSiQDkgXEZD";

var graph = "https://graph.facebook.com/<?php echo $row[ALBUMID]; ?>"
+ "/photos?limit=20" + "&access_token=CAACNTB50S2IBAIzMYWdNsNFSVAPbkUgQKm1TGX6kNzlIDvQr2BLUKURdZBMqaZBmLLWKhZC8kE9Qcet4UMvq5ZAwDLaSf36d1jZAaBbyAtA0ze6HiI5jfKXjLxLT1sl0ZCdZCydlZCFMdIZCTZAEQ59GxOpNVSiQDkgXEZD";

直到前一天我没有一个'access_token'变量,它在极限线处结束,并且工作正常,没有任何问题.

Until the other day I did not have an 'access_token' variable, it ended at the limit line and it worked fine without any issues.

感谢您的期待,这困扰了我好几天了!

Thanks in anticipation, this has been bugging me for days!

Cobain.

推荐答案

您可以使用不会过期的扩展页面访问令牌.

You can use an extended page access token which will not expire.

应用程序可以使用Page_admin用户通过manage_pages权限进行身份验证时从其获取Page访问令牌.如果用于检索此页面访问令牌的用户访问令牌是短暂的,则页面访问令牌也将短暂存在.

Apps can retrieve a Page access token from Page admin users when they authenticate with the manage_pages permission. If the user access token used to retrieve this Page access token is short-lived, the Page access token will also be short-lived.

要获得寿命更长的页面访问令牌,请按照上述方法,将用户访问令牌替换为寿命较长的页面访问令牌,然后请求页面令牌.生成的Page访问令牌将没有任何到期时间.

To get a longer-lived Page access token, exchange the User access token for a long-lived one, as above, and then request the Page token. The resulting Page access token will not have any expiry time.

https://developers.facebook.com/docs/facebook-登录/访问令牌/

这篇关于Facebook Graph不允许我访问公共团体中的任何相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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