2012-04-16 7 views

答えて

0

あなたはそれを参照https://developers.facebook.com/docs/channels/

<?php 

$ APP_ID = YOUR_APP_IDための独自のインターフェイスを構築することができますので、それは...ただのHTTP POSTです。 $ app_secret = YOUR_APP_SECRET;

$ token_url = "https://graph.facebook.com/oauth/access_token?" 。 "client_id =" $ app_id。 "& client_secret =" $ app_secret。 "& grant_type = client_credentials";

$ app_access_token = file_get_contents($ token_url);

$ user_id = THE_CURRENT_USER_ID;

$ apprequest_url = "https://graph.facebook.com/" $ user_id "/ apprequests?メッセージ= 'INSERT_UT8_STRING_MSG'"です。 "& data = 'INSERT_STRING_DATA' &"。
$ app_access_token "& method = post";

$ result = file_get_contents($ apprequest_url); echo( "App Request sent?"、$ result); ?>

関連する問題