Currently I am doing a Poker game similar to Zynga Poker. I have integrated XMPP for iOS into my project and it is working absolutely fine.
Now I am able to do following things.
Authenticating users with Open fire account and Facebook account.
Getting the presence status of available users
Creating group chat rooms
registering new users to Openfire server
Now what I want to do is to connect / send / receive messages between Openfire server users (ex: user#server.com) to user#chat.facebook.com).
Is it possible in XMPP? I didn't find any ideas about this. If you have any idea please let me know.
As I have played Zynga Poker, when I logged in as a Facebook user some other users are playing with me who are not my friends.
When I examined XMPP user authentication there is authentication method for user with password, authenticate with facebook accesstoken, authenticateAnonymously.
The one which I think they are doing is they are authenticating anonymously. If you have idea about my situation please suggest your remarks.
One more thing I want is to send and receive invites from/to users.
Related
Trying to send out chat message from Bot with sender as a current logged in user. I am able to implement this with graph api using On Behalf of flow. However the API is still in Beta and don't think we can use it in production setting.
https://learn.microsoft.com/en-us/graph/api/chat-post-message?view=graph-rest-beta&tabs=http
Is there a different way? Can we use ConnectorClient? Tried this, but the chat message is sent by the bot instead of the current logged in user. I am not able to create user token with botframework.com. It is always bot or the registered app.
Do anyone know if there is a way to accomplish this avoiding the graph beta api?
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.
My iOS app offers to the users to login using Facebook, Google+, Twitter or with a custom account. After the login, the user can connect all its social accounts to his account.
The app fetches the user contacts from all the social accounts he has connected.
Scenario 1: New user logs in with Facebook account
the user logs in with Facebook account, the app is authorized from Facebook and an access token is retrieved, so the app has all the details to proceed with fetching the contacts.
while the app is open, the user connect with his Google+ account, the app is authorized and it contains the access token
The app tries to fetch the Facebook and Google contacts -> OK
Scenario 2: Existing user logs in with Facebook account
The app has a fresh Facebook access token, but not a fresh Google+ access token, also if he already authorised the app and the 2 account details are merged.
How can I retrieve the Google contacts?
Is it possible to do it without asking again the user to authorize again the app?
Same scenario can be applied in the case user logs in with Google+ and he want to update the Facebook contacts.
Thanks
Many users sync their Facebook / Google contacts to the Contacts list on their device. You can join this list with users from your database using their emails, and then you have a list of their friends who also use your app. Obviously you have to store users emails in your backend this way, but if you're allowing them to login with multiple social networks, you'll want to do this because then you can map Facebook / Google / Twitter to one user in your app through their email. You also get the added benefit of displaying any friends who they've manually entered into their contact list. I think this is the easiest way.
If you want to go the route of connecting multiple social networks through your app then you would get friends from each social network who use your app through each of the API's (again joining with emails).
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've been searching this question, and I haven't been able to find anything that works. I have an iPhone app that allows users to link their Facebook account. It would look something like this:
Once a user has successfully linked to FB, I want to present them with a list of their FB friends and an option to invite selected friends.
FB Friend 1........... Invite
FB Friend 2........... Invite
...
FB Friend 1000..... Invite
Basically, I want to send a message to FB friends that says something like "Check out this app". I'm pretty sure this has to go to either their notifications or wall and cannot go as a FB message, but I can't figure out how to do it.
Also, I don't need to select a group of friends to invite -- this can be done one at a time. So it would look like this:
FB Friend 1........... invited
FB Friend 2........... Invite
...
FB Friend 1000..... Invite
Thanks so much for any help you can provide.
Unfortunately there isn't anything in the iOS SDK that presents the apprequests dialog, and a user has to have installed/approved your application before you can send them application notifications via a POST request...
Requests are a great way to enable users to invite their friends,
accept a gift or help them complete a mission in your app. There are
now two types of requests that can be sent from an app:
User-generated requests: These requests are confirmed by a user’s
explicit action on a request dialog. These requests update the
bookmark count for the recipient. You send requests by using the
recently launched Request Dialog.
App-generated requests: These
requests can be initiated and sent only to users who have authorized
your app. Developers can send these requests using the Graph API. Use
these requests to update the bookmark count to encourage a user to
re-engage in the app (e.g., your friend finished her move in a game
and it’s now your turn).
The only way to get this is via Facebook's Requests 2.0 dialog (which is not currently available to the Facebook iOS SDK):
http://developers.facebook.com/blog/post/453
See more here in this related question...
Sending application requests that appear in the left column on Facebook home page?