How can I publish a notification from a FB connect APP using only FMBL? Is it possible?
如何仅使用FMBL从FB连接APP发布通知?可能吗?
1 个解决方案
#1
It's not possible with just fbml. For one, you somehow need to specify which friends would receive notifications, meaning some kind of logic is necessary.
仅使用fbml是不可能的。首先,你需要指定哪些朋友会收到通知,这意味着某种逻辑是必要的。
You need to call the REST API, either using JS on the client side:
您需要在客户端使用JS调用REST API:
http://wiki.developers.facebook.com/index.php/JS_API_M_FB.ApiClient.Notifications_send
or using xml on the back end:
或者在后端使用xml:
http://wiki.developers.facebook.com/index.php/Notifications.send
There are api client libraries for the most common web languages (python/php/ruby).
有最常见的Web语言的api客户端库(python / php / ruby)。
#1
It's not possible with just fbml. For one, you somehow need to specify which friends would receive notifications, meaning some kind of logic is necessary.
仅使用fbml是不可能的。首先,你需要指定哪些朋友会收到通知,这意味着某种逻辑是必要的。
You need to call the REST API, either using JS on the client side:
您需要在客户端使用JS调用REST API:
http://wiki.developers.facebook.com/index.php/JS_API_M_FB.ApiClient.Notifications_send
or using xml on the back end:
或者在后端使用xml:
http://wiki.developers.facebook.com/index.php/Notifications.send
There are api client libraries for the most common web languages (python/php/ruby).
有最常见的Web语言的api客户端库(python / php / ruby)。