Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can invite friends from Facebook, Twitter, Google Plus and LinkedIn?

Posted on 2014-02-16
3
Medium Priority
?
3,282 Views
Last Modified: 2014-02-20
Hello, I'm building a web app and I want the users to be able to invite their friends from Facebook, Twitter, Google Plus and Linked In. How can I accomplish this?

Thanks.
0
Comment
Question by:ivanblue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Assisted Solution

by:Conner Turner
Conner Turner earned 1000 total points
ID: 39863255
Hello !,

This can be accomplished by using the Facebook API for Developer, you may want to visit there homepage: Facebook Developers

On the side of this you can use their javascript implementations as follows:

firstly you will want to generate the necessary keys needed to access the API, this can be done from the App Area, then create an application within the developers site, this will allow you access to the scope range of API's and information needed.

to allow your app users to invite, they will need to use the Login of Facebook to be authenticated with Facebook, this allows the app to user the friends that the user has logged into to invite.

Here are some more links you may wish to visit:

https://developers.facebook.com/docs/facebook-login
https://developers.facebook.com/docs/sharing

Sorry i could not be more help in terms of actual code, but there is some examples on the sites mentioned

HTH,
Conner
0
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 1000 total points
ID: 39863302
Do you want to do this through a 3rd party app or do you want to use the direct api's?

Each of Facebook, Twitter and Google will have their own API's.  As example, Facebook's is https://developers.facebook.com/docs/reference/dialogs/requests/ using the php sdk https://developers.facebook.com/docs/reference/php/ and the usage https://developers.facebook.com/docs/games/canvas/canvas-tutorial/#requests

Some PHP frameworks have this built in and there are 3rd party services like sharethis that make the process easy http://support.addthis.com/customer/portal/articles/381262-addthis-api-and-sdks#.UwEn10JdW_0

It depends on how comfortable you are and how much control you want to have.  If you are not working with a framework that has this available to you, it is a bit of work and  using the 3rd party apps will make your life easier.

I do think you have to be careful doing this because you can very easily put people off.  Notice how facebook apps from just a few years ago have changed and it is not common to invite all of your friends anymore.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The goal of the tutorial is to teach the user how to make an account for Skype and brief over view of all the options. There are the parts in this series.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question