dongyangben6144 2015-08-29 11:23
浏览 51

PHP cURL在Facebook中登录和发布或更新状态,无需使用API​​或SDK

Is there a way to Login and Post or Update status in Facebook with just PHP cURL? Just plain old form submission without api or sdk?

  • 写回答

1条回答 默认 最新

  • douzhuangna6906 2015-09-03 08:51
    关注

    Yes you can, but you'd essentially be rebuilding the core of the Facebook PHP SDK.
    The minimum you'd need is to build is an OAuth 2.0 login flow, which - if you want to implement your own - is documented here. This is needed to obtain an access token that you can then use to make Graph API calls (every Graph API call requires an access token).

    Making graph API calls is fairly easy to do with cURL, so you could do the same in PHP. To see example cURL commands, you can see the each Graph API endpoint's reference documentation here

    评论

报告相同问题?

悬赏问题

  • ¥15 关于无人驾驶的航向角
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退