[Closed] Social Networking Plugin (Facebook and Twitter) live!

The Social Networking plugin just went live! It has support for Facebook and Twitter. For both, it will cache the OAuth login tokens for you so that you only need to grab a users credentials once. The Twitter support is full xAuth which means there is no need to redirect to the Twitter web page to log the user in.

Plugin page: Prime31 Plugins
Social Networking docs available here

Quick Update: be sure to check the docs for links to Facebook and Twitter’s developer centers so that you can get a jump start on getting your API access.

Coming soon is the Etcetera plugin that will have a bunch of goodies and helpers that don’t fit into any particular categories. It will have a nice alert popup prompt that can take in 1 or 2 lines of text and can be styled to match your game along with web view, photo-to-texture, email composer, Apple alert view and more. For an example of the popup prompt see the attached images.

389425--13395--$screen_shot_2010_09_18_at_73107_pm_100.png
389425--13396--$screen_shot_2010_09_18_at_72444_pm_795.png

Great job! Keep it up! I’ll be getting this in the near future.

Bought!

You’re doing a great job in knocking out these plugins so quickly! Reasonable prices too I think.

Looking forward to your next one…

@MattSimpson, the goal is just that: to provide super easy to integrate plugins that cost far less than it would be to make them yourself. If you can buy a plugin for $30 that would take 6-10 hours to make yourself it’s a no brainer. Those hours are better spent making kick-ass Unity games.

This is great. Just what I’ve been looking for. I just applied for xAuth for Twitter and set up my Facebook app. Two questions:

  1. How hard is it to get xAuth approval from Twitter? Reading their xAuth docs it seemed like they’re pretty restrictive about it.

  2. Does your Facebook implementation use the new Facebook GraphAPI or the old one?

@liquidgraph, I have never heard of Twitter denying xAuth for a mobile app. The Facebook code is using the new Graph API.

Thanks, this release has made my day.

Edit: Do your plug-ins require Unity iPhone Pro, or they work with iPhone Basic too?

Hi Prime

I’ve just upgraded to Unity 3 and I will be purchasing a plug-in or two very soon. I’ve been very interested in this one especially for Facebook connect.

For other games that I’ve played in the past on my iPhone that have Facebook Connect in it the posts on my wall seem to have the following elements.

  • A title
  • An image on the left hand side which also is click-able (I.E. hyperlink to either their website etc)
  • The main description on the right hand side
  • An optional secondary hyperlink with custom label on the right hand side as well.

It doesn’t look like the plug-in has a method to do all of this within the one method call (thus in the one Facebook post), … are you planing to extend your FB plug-in to include this or is it easy to extend this ourselves?

Cheers,
Dean

@dcp468, I’ll have a look through the API to see exactly what the procedure is to get a post like the one you describe.

@dcp468, is the attached image what you are looking for?

391884--13460--$screen_shot_2010_09_22_at_80314_pm_813.png

Yes, absolutely, … 100%

Having such a rich Facebook post (Title, clickable Image, description, other links to your facebook page for your game and/or app store etc) is great for self promotion of your game among the players FB friends.

Cheers,
Dean

So I’m confused, does the Social Networking plugin allow for “rich” Facebook posts at this time, or is that still in development and slated as an update?

@liquidgraph, the post in the image is from the currently released plugin. See the postMessageWithLinkAndLinkToImage method form the docs.

I think there is a way to embed an image without having to link to one stored on an external server. I’d have to check the FB API.

@Hoff, there is. It is the postImage method.

Ah, I missed that one :slight_smile:

Hi Prime

Just got the social plugin and have to say the setup couldn’t be easier, … and I still cannot get over the fact that we can have these features with Unity 3 by default.

Regarding the Login page that pops up:
(1) there use to be a close button on the older facebook connect login dialog, … does this not exist anymore. How can a user close the dialog if a user doesn’t want to login or change their mind? I notice it’s still there even if you exit and start unity again, so you cannot get the dialog to disappear.
(2) Can the login dialog be displayed in landscape if your game is in landscape?
EDIT: The landscape issue is working correctly now, … not sure why however I’m now using Unity F5 whereas before I was using Unity F3. Maybe there was a bug in it.

Possible FB enhancements to Social Plugin (based on what I’ve seen elsewhere in other games)

  • Once a user logs-in and ALLOWS the app to access their basic information (I.E. profile picture). It would be cool to be able to display their profile pic within Unity while they’re logged in.

I’ve tried the FB login with your Facebook app and mine (see both pictures). Why does your app ask for Access my basic information where mine doesn’t. Is there a setting within your FB app.

EDIT: Regarding the CLOSE button on the login dialog, … there’s one there in the TOP RIGHT however you cannot see it, and I swear it didn’t work the other day because I tried it several times. Weird. However the close button seams to be invisible.

Cheers,
Dean

393646--13563--$IMG_1196.jpg
393646--13564--$IMG_1195.jpg

Are there any plans with this to support twitter querying? Also, it would be great if it also worked on other platforms, if this isn’t the case already.

Hey Prime,

Today I bought your plugin but I need a bit help to get start.
After inserting my Facebook App ID in FacebookBinding.init( ) and I start your testscene with that nice gui , I click at the Facebook “Login” button, but nothing happens.
The Facebook loginscreen didnt appear. What can I do make it work?
I’m using the the “Unity Iphone Basic Edition” in version 3.0.0.5F.

Greetings Maglat

@Maglat, … It doesn’t work in the Unity editor if that’s where you’re trying to invoke the login dialog. You have to first build it “Do a Build (not a Build and Run)” then start it within Xcode. You have to test this on your device for it to work.