PHP FB アプリについて少し助けが必要です。
問題は、scientific_other_id に $relationId としてアクセスしたくないということです。
まず、リンク経由でユーザーによる承認を取得します: https://www.facebook.com/dialog/permissions.request?app_id=XXX&display=page&next=XLINK&response_type=code&perms=publish_stream,user_relationships
次に、phpファイルで承認した後、これを試します:
<?php
include('src/facebook.php');
$facebook = new Facebook(array(
'appId' => 'XX',
'secret' => 'XX',
'cookie' => true,
));
$user_profile = $facebook->api('/me','GET');
echo $user_profile['relationship_status']; //Prints ok, requested info
echo $user_profile['significant_other_id']; //Prints nothing
私はそのIDを取得できませんでした:S誰かがこれについて経験を持っているなら、あなたの返事は素晴らしいでしょう.
ありがとう。