dqzg62440 2012-03-03 07:28
浏览 32

如何使用PHP在应用程序的墙上自动发布

I have requirement that whatever I store on server database (like adding new question), it should auto publish to application's wall so that users who likes application can see regular updates.

How is it possible using PHP?

Any answer would be appreciated.

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dou47278 2012-03-15 06:11
    关注

    You have to set a listener that will read the new changes on db or from the interface where u are setting the data for the database call the fb api and post it inmediatly... in that case would be something like this.

     $autpost = array('message' => ' message',
        'name' => 'This is my demo',
        'caption' => "Caption ",
        'link' => 'http://facebook.com',
        'description' => 'description',
        'picture' => 'http://somesite.picture.jpg',
        'actions' => array(array('name' => 'Get Search',
        'link' => 'http://www.google.com'))
        );    
        $result = $facebook->api('/fanpage id/feed/', 'post', $wall_post);
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化