I already have an active Facebook session in my app, and want to be able to send a private message to a friend using the access token I already have. The closest I've gotten is to open a UIWebview to the touch interface, but the user will need to log into Facebook again before being able to send a message. Is there a way to send a private message using the session that is already active, and ideally, using my own interface? If I could send an email to the username#facebook.com programmatically, that would be perfect, but that isn't possible in iOS that I know of.
As I understand it, here are the options to send messages to friends in iOS:
Send an email using the mail composer to the username#facebook.com (unable to send email programmatically, otherwise this will be perfect)
Send an app request/post on the wall using the Facebook SDK
Open a webview (and log into Facebook again) show the touch dialog for messaging
Is there anything I'm missing?
I found that you can send private Facebook messages using the Facebook Chat API using XMPP.
https://github.com/robbiehanson/XMPPFramework
Quickblox has some sample code that demonstrates how to send FB messages.
Related
I'm using Firebase phone authentication in my app. I am wondering how I can customize the text message sent to the user.
For example, I would like the SMS the user receives to say:
"Welcome to XXXX App. Your verification code is 123456."
No , you cannot customize the SMS send by Firebase Phone Authentication.
Go to Firebase console you will find this
It shows no option to customize , only you can change language.
I'm creating a service marketplace to offer and ask services.Users can contact each other via inbuilt message module.Here I'm planning to send message in receiver's facebook account to notify the receiver about the new message in marketplace.People often use facebook and occasionally sign in marketplace site or check email.So I want to send a notification message in their facebook.
I went through this tutorial but it doesn't work for me. I think this is outdated as facebook chat API are depreciated.
Is there any other way to send private message to facebook friends. Any suggestion will be appreciated
No, there is no way to send messages to friends. Users have to use the Messenger App or facebook.com.
I'm making an iOS app and the user has to enter their info to register for an account. I'm wanting to make it so that it sends an email to the provided email account with the info that they just entered. But I don't want them to be able to see the email view. Is there a way to send an email in the background in iOS 7? I'm familiar with the SMTP Gmail workaround but I was wondering if there was anything more generic.
There is no documented API available using which you can perform this.
send this detail to your server via web service and than server will send the email using that detail.
I'm developing an iOS application that allows a user to login in the Facebook and then send messages to his friends using the Facebook Chat API.
To connect my Facebook account, i'm using xmppframework (https://github.com/robbiehanson/XMPPFramework). The connection is well established and I can send messages to my friends. However, when the conversation is reopened (Facebook web site, messenger) the message is no longer available and a new message is shown: "This message is no longer available because it was identified as abusive or marked as spam".
I've no idea that what's happening. I already tried to check the permissions, track the authentication flow and I found nothing anormal.
Anybody knows what I have to do to avoid this?
Problem solved! I changed the Sandbox mode to off and the messages aren't identified as spam anymore.
I need to send a Facebook new message using Facebook PHP sdk or Javascript sdk. This message should be attached a link for a Facebook app. please check this image, Then you can understand about what I exactly want.
New Message with Link Attachment Image
Please anyone can help me?
This is not currently possible. Applications are prevented from sending private messages to their users (or any users for that matter) because it would be a serious vulnerability for spam.
One Alternative
would be to request the email permission from your applications users and then using
Graph API
or
FQL - Facebook Query Language
you'll be able to request the email of the user and send him an email using some code on the server.
You can read more about requesting permissions for facebook applications at these links :
https://developers.facebook.com/docs/reference/api/permissions/
https://developers.facebook.com/docs/authentication/
Another Alternative
would be to utilize facebook dialogs and initiate a 'request' or 'apprequest' dialog. For this you'll need to implement the Facebook JavaScript SDK and the Request Dialog.
The Request Dialog
When you initiate this dialog you can specify a message to be sent along with the request. When a user responds to one of these requests they are redirected to your application.
(source: fbcdn.net)