简体   繁体   English

在Facebook应用程序中获取没有用户访问令牌的Facebook照片

[英]Get Facebook Photo without user access token in Facebook application

In my Facebook application, I use the following to retrieve photo from a public Facebook Page. 在我的Facebook应用程序中,我使用以下内容从公共Facebook页面检索照片。 The application is also added to this page as a Tab application. 该应用程序也作为Tab应用程序添加到此页面。

FB.api({
        method : 'fql.query',
        query : 'SELECT src_big FROM photo WHERE object_id = '*photoId*'
    }

This was working fine but I noted that it will not work when the user has not given the permission to the application. 这工作正常,但我注意到当用户未授予该应用程序许可时,它将无法工作。

I get the following error. 我收到以下错误。

Required valid saignature

Is there any other way where I can retrieve a photo by photo_id in Facebook without user having given the permission to the application. 还有什么其他方法可以在用户未授予应用程序许可的情况下通过Facebook中的photo_id检索照片。

I noted that using following too gives the same error 我注意到,使用跟随也会产生相同的错误

FB.api({
                    method : 'fql.query',
                    query : 'SELECT src FROM photo_src WHERE photo_id ='photoId' 
                }, function(data) {
FB.api({                    
   method :'fql.query',                   
   query :'SELECT src FROM photo_src WHERE photo_id ='photoId'                 
}, function(data) {

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM