Facebook API isimli haber akışı erişimi

0 Cevap php

Ben kullanıcı tarafından verilen çevrimdışı erişim ve oturum için = 0 sona eriyor, bu yüzden asla sona eriyor. Ben bir veritabanında access_code vb gibi tüm oturum değerleri kaydettikten. Hemen değerleri saklamak sonra, ben newsfeed okuyabilirsiniz. Ben kullanıcı newsfeed okumak için bu saklı oturum değerleri kullanmaya çalıştığınızda 2 saniye sonra, bu çalışmıyor. OAuthException: An active access token must be used to query information about the current user

In Php, I am using this line to read newsfeed:$result=$facebook->api("/me/home?access_token=".$access_token);

Ben tarayıcı url erişim kodunu girdiğinizde Gariptir, bu çalışıyor:

https://graph.facebook.com/me/home?access_token= $ access_token.

http://example.it/home/newsfeed.php?perms=<permissionlist>&selected_profiles=<uid>&installed=1&session={session_key:<session_key>,uid:<uid>,expires:0,secret:<secret>,access_token:<firstpart>|<secondpart>|<third part>,sig:<sig>}: kullanıcı size izin verir zaman, url bu olsun, hatırlıyorum

Benim izin listesi şudur:

"friends_about_me,friends_education_history,friends_likes,friends_interests,friends_location,friends_religion_politics, friends_work_history,publish_stream,friends_activities,friends_events, friends_hometown,friends_location,user_interests,user_likes,user_events, user_about_me,user_status,user_work_history,read_requests,read_stream,offline_access,user_religion_politics,email,user_groups";

when I enter the url above to any browser, it gives me the news feed of uid, as the newsfeed.php has the php code that outputs newsfeed. It does not matter if the user is logged in, or not. IE even downloads the json result as a file

Yani oturum bilgileri gerçekten çalışıyor, süresi dolmuş değil. Ama nedense, ben Facebook ben newsfeed okumak için doğru kimlik bilgilerine sahip inanmak alınamıyor.

Herhangi bir yardım çok takdir. Ben oturumu değerleri yeniden ve Facebook bana iman nasıl olabilir yazınız.

My final solution can be found on my updated blog: http://akcora.wordpress.com/


Ben de yem işe yaramazsa bile, ben hala kullanıcının profiline durum ileti gönderebilir, belirtmeyi unutmuşum. Bu hiç mantıklı değil. Ben kodlama bir hata mı yapıyorum neredeyse eminim. Örneğin bu işleri durum gönderme kodu:

$attachment =  array(
         'access_token' => $access_token,
          'message' => 'Did a Test Post :',
              'name' => "Offline posting using stored tokens",
              'link' => "http:somelink.com",
              'description' => "This post was made using a stored access token",
          'picture'=>"some.jpg",
        );

$ret_code=$facebook->api('/'.$target.'/feed', 'POST', $attachment);

ancak yayın alma çalışmaz. Güvenlik hakkı, newsfeed almak daha yazabilmek için sıkı olmalı?

0 Cevap