Integrating facebook chat API into iOS application - ios

I have an iOS application that already using some methods of Facebook Graph API, but i need to implement sending private message to friend by Facebook from my application. As i know, there is no way to sending private messages by Graph API, but it maybe possible by help Facebook Chat API. I already read documentation but it don't help me. If anybody has some kind of example or tutorial, how to implement Facebook Chat API in iOS application, how sending requests or something, it will be very helpfull. Thanks.

Have a look at the XMPPFramework which has sections on both integrating the XMPP framework into iOS and implementing Facebook chat. This includes working sample projects.
Facebook private messages are accessible, but seem to be read only. See this blog post.

check this github project. they have integrated facebook api using xmppframework https://github.com/KanybekMomukeyev/FacebookChat

Related

Swift iOS Twitter API Fails

I am trying to load some twitter feeds of a user on Swift iOS App. On twitter Documentation, I found the API is:
https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&count=2
which returns:
{"errors":[{"message":"Bad Authentication data","code":215}]}
Older Rest API did not require. Newer API requires authentication.
Requires authentication? Yes
How do I get that working? Any tutorials would be even sweeter!
Before marking this question duplicate please bear in mind that I have done a good search and none of the answers answered my questions because a lot them point to older Rest APIs.
Take a look at Twitter Fabric http://dev.twitter.com/fabric which is a free SDK (compatible with Swift) that provides easy authentication via either guest or user login. Sample app written in Swift at https://github.com/twitterdev/cannonball-ios
If you would prefer to use raw REST calls against the API, follow the OAuth details in our dev documentation https://dev.twitter.com/oauth
In settings of your simulator go to accounts -> Twitter, and login there in actual twitter account. As you try to login, it doesn't know what user to use, so you need to specify it.

Gtalk implementation in iOS

Is there any way to implement Gtalk in iOS application,i just want to create an application, in which user can simply login with his/her gmail account and, chat with those people who are in his chat list.
if any one know how to do this, then please help me.
thanks in advance
Google Talk uses XMPP (Extensible Messaging and Presence Protocol). You can use for example the XMPPFramework framework to implement it. This framework is listed on a XMPP Foundation website.
XMPPFramework provides a core implementation of RFC-3920 (the xmpp
standard), along with the tools needed to read & write XML.
Check out the Getting Started Guide for iOS. It contains an example iOS project.
Furthermore, have a look into Google Talk Developer Documentation. There is a section called: I want to build a client that connects to the Google Talk service which describes steps you should take to implement a client.

App requests in Facebook without re-logging and use session in Social Framework

I've successfully connected in Facebook using Social Framework, also able to get list of my friends. However, I need to invite friend to use my app, I have been reading some articles and stackoverflow, that this need to use Facebook SDK.
Now, I able to achieve this using Facebook SDK. but then I need to re-logging (show pop up or direct to FB app). What I want is, to use session or outhToken that I have while I connected using Social Framework and use it in Facebook SDK. what I know, I have outhToken already. how to use this maybe to pass in FBSession or whatever class object to show app request ?
below is sample of app request.
For those who stumbled this question,
Facebook now remove graph API to grab friends that doesn't install the app. hence we cannot invite friends who doesn't install app.
even using Facebook SDK. if anyone has better solution or any updates on this, please share.

Using google plus API is it possible to fetch gmail contacts

In my application I want to fetch my gmail contacts.
In my app I have already integrated "Google+ API" So i just need to know that can i access my gmail contact by using the same API. Or I need to integrate Gmail API.
Please help me I am new to this
I wouldn't imagine how you would get the contacts from one service by using another? Not everyone in your gmail contacts is going to be on your google+ account, so how would it be possible to get them?
There are other ways and it is documented online how to integrate with gmail, I suggest you research links like the following to find something you need:
gmail integration in ios application
Gmail API for objective-c?
how to fetch my Gmail contacts into my iPhone App
It is possible, but only if you ask for the contacts scope alongside your Google+ scopes.
Where you integrate the Google+ API, you will also need to ask for scope https://www.google.com/m8/feeds.
See https://developers.google.com/google-apps/contacts/v3/ for more details.

Likes on official page on facebook in ios

I'm trying to search approach to get like on official page on facebook in my native iOS app.
I read many questions and answers and the resume is no method for this in iOS SDK, but I found that facebook can open access for this method in API.
Where can I send my request for?
I'm sorry if I'm asking in wrong place. I don't know where I can ask.

Resources