2014-01-27 1 views
0

그렇게페이스 북에 여러 FQL 내가 모두 잘 간다 그래프 탐색기에서 access_token은 사용하려고하면 내가 가진

{ 
"users" : "SELECT uid, name, pic_big FROM user WHERE uid in (SELECT source_id FROM #stream)", 
"stream" : "SELECT post_id, description, type, message, created_time, updated_time, source_id, attachment from stream where filter_key in ('others') and type in (46, 56, 66, 80, 128, 247, 308) and (message or description) ORDER BY created_time desc LIMIT 15", 
"photos" :"select images, pid from photo where pid in (SELECT attachment.media.photo.pid FROM #stream)" 

} 

를 쿼리 쿼리합니다. 나는 사용자에 대한 내 응용 프로그램의 내 액세스 토큰을 사용하는 경우 그러나 오류

{ 
    "error": { 
    "message": "An unknown error has occurred.", 
    "type": "OAuthException", 
    "code": 1 
    } 
} 

내가 변경하는 경우 마지막 쿼리보다 발견하고 모두가 잘가는 실제 PID이 코드를 교체 도중 얻었다. SELECT attachment.media.photo.pid FROM #stream

아무도 도와 줄 수 있습니까?

답변

0

나는 무작위로 내가 원하는대로 성취했다. 여기

작업 코드 :

{ 
"users" : "SELECT uid, name, pic_big FROM user WHERE uid in (SELECT source_id FROM #stream)", 
"stream" : "SELECT post_id, description, type, message, created_time, updated_time, source_id, attachment from stream where filter_key in ('others') and type in (46, 56, 66, 80, 128, 247, 308) and (message or description) ORDER BY created_time desc LIMIT 15", 
"photos" :"select images, pid from photo where pid in (SELECT attachment FROM #stream)" 
} 

당신은 내가 FQL 논리가 표시되지 SELECT attachment.media.photo.pid FROM #stream

SELECT attachment FROM #stream에 나는 모든 지금 변경 :(

볼 수