グラフAPIを介してFacebookに組み込まれているいいねを使用しようとしています。ユーザーはすでに私のサイトにログインしているので、AppTokenを使用しています。これが使用しているソースです。このライブラリを使用しています https://github.com/criso/fbgraph
function liker(url,profile){
graph.setAccessToken(app_token);
var like = {
object: url
};
graph.post(profile.id + "/og.likes", like, function(err, res) {
// returns the post id
console.log(res); // { id: xxxxx}
});
}
アプリはappadmin/ owner meで期待どおりに動作しますが、他のユーザーではこのエラーメッセージが表示されます
error:
{ message: '(#3506) The action type likes:Like does not exist or is not approved, so app xxxxxxxxxx can only publish to administrators, developers, and testers of the app. User yyyyyyyyyyy$
type: 'OAuthException',
code: 3506 }
私のアプリは、ユーザーにアクションの公開許可を要求します。これは、fbからの組み込みの同様のアクションの要件です。
よろしくお願いします。どんな助けでも感謝されます。