dongzhi6087 2015-01-02 05:11
浏览 62
已采纳

如果不使用Facebook登录并回拨网址,Facebook应用程序可以获得批准吗?

I am using facebook php sdk v4 to post as admin to my own fan page. No other user will use this app.

The script will run under cron job and post three products a day. I created a new facebook app and use graph API explorer to get short live access token. I need extended permission on "manage_pages and "publish_actions". Tested using test app and working fine.

Now I need to get approval of the app. However, I do not use Facebook login and there is no call back url, which is required in the form of approval. Since this is run under background, Facebook team can not test the app.

How to get the actual app approved and run on my server?

$api_key = 'xxxxx';
$api_secret = 'yyyyy';
$page_id = 'zzzzz';
$accessToken='aaaaa';

FacebookSession::setDefaultApplication($api_key, $api_secret);
$session = new FacebookSession($accessToken);

$access_token = (new FacebookRequest( $session, 'GET', '/' . $page_id,  array( 'fields' => 'access_token' ) ))
    ->execute()->getGraphObject()->asArray();

// save access token in variable for later use  
$access_token = $access_token['access_token'];

$page_post = (new FacebookRequest( $session, 'POST', '/'. $page_id .'/feed', array(
    'access_token' => $access_token,
    'name' => 'product title',
    'link' => 'product image url',
    'caption' => 'web store name',
    'message' => 'product description and url',
  ) ))->execute()->getGraphObject()->asArray();
  • 写回答

1条回答 默认 最新

  • dronthpi05943 2015-01-02 06:22
    关注

    You don't need to get the application reviewed if you are going to be the only person using it . Even if you need to enable access to the app for few members in the team, you can add them as app testers to the app (in roles section) , so that even they can also use the app with out review .

    the review action is for ensuring the quality of the app to general public. but all the actions including open graph stories can be published on behalf of app owner/developer or testers accounts with out review .

    note : for your purpose you might not want to change the application from development mode . more details on development mode and app roles .

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 链接问题 C++LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接