I have a page with a comments social plugin, I would like to know if it's possible to notify users who have already commented on the form.
I can subscribe to the comment.create function, but how do I send notifications?
I know actual notifications are now impossible, but is there another way? (Sending a message from the user perhaps?). With the format of my page, they will want to know when someone has posted.
I haven't tried that, it's just an idea.
https://developers.facebook.com/docs/reference/plugins/comments/ - look at the section describing way of getting comments via Graph API.
E-mail way:
You can ask each user who logs into your site to allow you to get his e-mail address. Then, you would subscribe to this event, list users who commented an article and send them an e-mail.
Message way:
You need a Facebook page for your site. Then you would receive a token for this page (manage_pages permission), get publish_stream permission in behalf of this page and publish message to streams of users who commented.
It may be also possible to send user a message on behalf of a page using Graph API, however I haven't seen anything like that in docs
This is not allowed by facebook, the attempt will result something like this:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException"
}
}
This is because the social plugins do not "live" inside facebook, they are being distributed to 3rd party sites, and to prevent bad content posted from bots/apps to display in 3rd party websites, facebook has disabled this option.
Search for WordPress Plugin called Ultimate Facebook Comments Email Notify. I hope it will solve your problem...and you can also take some idea from his script which he is using in the plugin....hope this helps :)
Related
I need to send message to my facebooks friends which should include:
- default text message
- url
- my custom message
and I need to know to whom this message was sent.
Please advise how this can be done
Have a look at https://developers.facebook.com/docs/sharing/reference/send-dialog
This states that
Facebook messages are a channel for person-to-person communication, and not for apps to send messages, or encourage people to spam their friends. In general, games on Facebook.com should use requests when communicating in game status (its your turn), inviting people to use an application, or sending messages to multiple people. You should offer the Send Dialog in situations when someone might otherwise send an email.
So I doubt that what you want to do adheres to Facebook's policies, and therefore will likely trigger a deactivation of your app.
I am using POST direct_messages/new for inviting twitter friends for my website.
About a month ago, my application could send direct messages, but now the API is returning this error:
"This request looks like it might be automated. To protect our users from spam and other malicious activity, we can't complete this action right now. Please try again later."
How can I fix this error to continue sending direct messages from my application??
Thanks in advance.
According to Twitter's developer site you have to file a ticket if you get the message: This request looks like it might be automated. To protect our users from spam and other malicious activity, we can’t complete this action right now.
We constantly monitor and adjust our filters to block spam and
malicious activity on the Twitter platform. These systems are tuned in
real-time. If you get this response our systems have flagged the Tweet
or DM as possibly fitting this profile. If you feel that the Tweet or
DM you attempted to create was flagged in error, please report the
details around that to us by filing a ticket at
https://support.twitter.com/forms/platform.
From Twitter Developers Error Codes & Responses (the error codes list, error code 226)
I've logged in and used the Facebook CHAT api all right. The problem is that I want to have a system where anyone can send me a message, without actually being on the friend list.
When the sender is in the friend list, I see the message. Is there a possibility that I can configure my account to receive messages from anyone, independing on if they are in the friend list or not?
Best Regards.
The Chat API and the Message API are not the same.
You may want to think of Chat as a subset of messages.
When a message is received and the user is a friend you receive a chat notification, if not, no response.
I have created an application which can post to users wall or even send emails to selected users, what I have not been able to come up with is the functionality to let an application send a message to users facebook inbox, I have googled it and found that applications are not allowed to send messages to users inbox however there's this product called rockmelt browser which does the same thing.
There's has to be some way which allows sending messages to users inbox.
Can somebody guide me on this?
It appears that you cannot send a message to a user's inbox. The closest thing may be this http://developers.facebook.com/docs/reference/rest/livemessage.send/. It allows you to send a live message to a particular user's browser.
Hope this helps.
If you are sending the message from your application user to one of their Facebook friends, you can use a Request, which will show up in the notification area. When the user clicks on the notification, they'll be taken to your App Canvas where you can show them the full message and any other app interactions you want.
I need to send a message or a notification about an event or something else to my friend from my facebook application for website. The rest api is no longer in use ....So is there any other ways...Sample codes???
Thanks in advance....
You can't as yet send notifications via the new API.
While we currently don't allow
applications to send messages through
this API, we're always thinking about
new functionality to offer through
Facebook Platform.
Source: http://developers.facebook.com/blog/post/291
"Sample codes" and documentation, straight from the horse's mouth: http://developers.facebook.com/docs/api
See especially the sections labelled "Reading" and "Publishing"