0

scope=email, publish_actions, publish_stream を使用するアプリケーションがあるため、他の詳細の中でユーザーの電子メールを取得することを承認します。

問題は、使用するコードに関係なく、どのような方法でも取得できないことです...これで4時間以上立ち往生しています。PHP SDK はバージョン 3.2.2 ですが、付属のサンプルは機能しません。昨年 (2012 年 4 月) に作成したアプリも動作しないことに注意してください。Graph API の使用方法に何か変更はありますか?


これは、どちらも機能しないexample.phpからのものです

// Get User ID
$user = $facebook->getUser();

// We may or may not have this data based on whether the user is logged in.
//
// If we have a $user id here, it means we know the user is logged into
// Facebook, but we don't know if the access token is valid. An access
// token is invalid if the user logged out of Facebook.

if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $user_profile = $facebook->api('/me');

$user_profile['name']そして$user_profile['email']何も返さない...

4

0 に答える 0