How To: Post A Message On The User Wall Using Facebook Graph API
2012-03-07 20:04
483 查看
From: http://www.masteringapi.com/tutorials/how-to-post-a-message-on-the-user-wall-using-facebook-graph-api/33/
This is a quick post to demonstrate how to post a status message on the user wall using the Facebook Graph API. First of all, you need the
Posting a message and a link
In the above example we posted a message and a link using the PHP-SDK.
publish_stream:
Enables your application to post content, comments, and likes to a user’s stream and to the streams of the user’s friends. With this permission, you can publish content to a user’s feed at any time, without requiring
This is a quick post to demonstrate how to post a status message on the user wall using the Facebook Graph API. First of all, you need the
publish_streamextended permission to perform this action.
Using the PHP-SDK
Posting a message and a link
In the above example we posted a message and a link using the PHP-SDK.
Using the JavaScript-SDK
This is an example of posting a message using the JavaScript SDK taken from theFB.apidocumentation:
Notes
Please note that you can still post to a user wall even if the user is not connected to your application and withoutoffline_accesspermission just by knowing the user id:
publish_stream:
Enables your application to post content, comments, and likes to a user’s stream and to the streams of the user’s friends. With this permission, you can publish content to a user’s feed at any time, without requiring
offline_access. However, please note that Facebook recommends a user-initiated sharing model.
相关文章推荐
- A Tutorial on Using the ALSA Audio API zz
- [Angular] Scrolling the Message List To the Bottom Automatically Using OnChanges
- How to: Check if User Has Certian Permission – Facebook API (通过facebook提供的php版本的SDK发送feed)
- [转] A Tutorial on Using the ALSA Audio API
- A Tutorial on Using the ALSA Audio API
- Demo: Using Javascript / JQuery to play back user actions on the web
- Facebook Friends.getAppUsers using Graph API
- How To: set udev rule for setting the disk permission on ASM disks when using multipath on Linux 6.x
- Unity Application Block Hands-on Lab for Enter-Lib 5.0:Lab 2-Using the Configuration API[Translation]
- [Windows Azure] Using the Graph API to Query Windows Azure AD
- Geometric deep learning on graphs and manifolds using mixture model CNNs
- Congratulations on the post " face search " getting google ranking top1 !
- CUDA Cuts: Fast Graph Cuts on the GPU
- Create & delete user accounts from the command line on Mac OS X
- HTML5 postMessage 和 onmessage API 详解
- [gpu pro]MultiFragments Effects on the GPU using bucket sort
- UVALive 5876 - Writings on the Wall 【KMP】
- 解决Xcode中运行出现"cannot run using the selected device"、"cannot run on the selected destination"或无反应问题
- 69.You are working on an instance started using the SPFILE. You want to move the Flash Recovery Area
- How to access HBase from spark-shell using YARN as the master on CDH 5.3 and Spark 1.2