NimbleKit - fast iOS app development

FaceBook Connect

Forum for posting sample code and examples, new posts creation is not allowed, but everybody can comment

Re: FaceBook Connect

Postby ihmunro » Tue Jan 18, 2011 4:18 am

Hi Diego

Check the Classes folder out - it is in there.

Iain
ihmunro
 
Posts: 371
Joined: Sat Oct 02, 2010 9:31 pm

Re: FaceBook Connect

Postby mattchapman » Sun Jan 23, 2011 4:43 am

Anyone seen this.... My code was working fine.. no changes and now this is what happens.. Some of the facebook images (not ones in the bundle do this).
Screen shot 2011-01-22 at 9.38.04 PM.png
Screen shot 2011-01-22 at 9.38.04 PM.png (27.92 KiB) Viewed 1436 times
mattchapman
NimbleKit Expert
 
Posts: 181
Joined: Tue Jul 07, 2009 11:24 pm

Re: FaceBook Connect

Postby mattchapman » Sun Jan 23, 2011 5:05 am

May have answered my own question here...

Looks like the Facebook page has a CSS issue causing the FBConnect stuff to be a little off. Check
touch.facebook.com and it renders the login button incorrectly as well.

Matt
mattchapman
NimbleKit Expert
 
Posts: 181
Joined: Tue Jul 07, 2009 11:24 pm

Re: FaceBook Connect

Postby Macintosh Sauce » Sun Feb 06, 2011 3:08 pm

Thank you, Sunny. I am going to try to implement this in the Universal app I am working on right now. :)
 MacBook Pro - 2.90 GHz, 16 GB RAM, 1 TB HD
 iPad (64 GB, white, Wi-Fi [3rd generation])
 iPhone 4S (64 GB, white)
User avatar
Macintosh Sauce
 
Posts: 83
Joined: Tue Jan 25, 2011 1:44 pm
Location: USA

Re: FaceBook Connect

Postby norwegian » Tue Feb 15, 2011 11:10 pm

Is Single Sign On supported?
norwegian
 
Posts: 96
Joined: Sat Oct 17, 2009 6:58 pm

Re: FaceBook Connect

Postby Pastie » Fri Feb 25, 2011 7:09 pm

I have been using the Facebook Connect code from this thread and I found that my App was crashing.

It seems to be something to do with the Navigation Controller (although I'm not certain exactly the cause).

If you could install the attached App and try the following steps:

1. Click Test link to login to Facebook (if not already logged in).
2. Click on Friend List button to get friends
3. Click on a friend name to open the Facebook Post to Wall dialog
4. Choose either Skip (or close the dialog using cross)
5. Click on a friend again to open the Facebook dialog - you will see this works without any issue

6. Now, click on the Goto Subpage link. This takes you to an exact copy of the current (main.html) page, but as a sub page of the navigation controller
7. Repeat the same steps on this sub page: Click Friend List, click a friend name, close the dialog.

8. Now, try the same thing again...click on a friend name and you will see the App crashes

I am not sure if this is something I've done or if it is a bug with the NavController. I have made a couple of minor modifications to the AppFBController, but not sure if I've broken it or it there is some other conflict.

Any ideas?
Attachments
Archive-1.zip
(102.13 KiB) Downloaded 137 times
Pastie
 
Posts: 17
Joined: Sat Feb 05, 2011 1:13 pm

Re: FaceBook Connect

Postby Eviserator » Tue Mar 01, 2011 1:05 am

sunny wrote:This sample code shown the usage of FaceBook connect library.
You can:
1. Login
2. Logout
3. Obtain name of logged in person
4. Obtain list of friends
5. Write messages on walls of friends
6. Write message on my wall?


Sunny,

Can we add this feature? How do I write something to my wall when I log in to Facebook?

-Skip
Skip Potter, Live a mobile life...
web: http://www.pottertech.com
NK Registered: U797426801
User avatar
Eviserator
NimbleKit Guru
 
Posts: 294
Joined: Sun Jan 24, 2010 7:59 am
Location: Woodbridge, Virginia

Re: FaceBook Connect

Postby Pastie » Tue Mar 01, 2011 8:41 am

Hi Eviserator

If you comment out the part of the code shown by Sunny (or simply don't send the userid to the function) it will post to your own wall.

Anyone been able to get the Facebook Connect code working with the navigationController? (see my post above...I'm still stuck with this).
Pastie
 
Posts: 17
Joined: Sat Feb 05, 2011 1:13 pm

Re: FaceBook Connect

Postby Eviserator » Tue Mar 01, 2011 2:28 pm

Pastie wrote:Hi Eviserator

If you comment out the part of the code shown by Sunny (or simply don't send the userid to the function) it will post to your own wall.

Anyone been able to get the Facebook Connect code working with the navigationController? (see my post above...I'm still stuck with this).


Thanks, I will test that later today...
Skip Potter, Live a mobile life...
web: http://www.pottertech.com
NK Registered: U797426801
User avatar
Eviserator
NimbleKit Guru
 
Posts: 294
Joined: Sun Jan 24, 2010 7:59 am
Location: Woodbridge, Virginia

Re: FaceBook Connect

Postby HughJohnson » Wed Mar 02, 2011 12:10 am

If all you want to do is post to the user's facebook wall you could use something like:
Code: Select all
statusUpdate = 'Post this as your facebook status';
url = 'http://www.facebook.com/connect/prompt_feed.php?message=' + encodeURIComponent(statusUpdate);
navController.gotoPage(url)";


Similarly for twitter you could do something like:
Code: Select all
timelineUpdate = 'Post this on your twitter timeline';
url = 'http://m.twitter.com?status=' + encodeURIComponent(timelineUpdate);
navController.gotoPage(url)";


I think eventually you would have to use their API and stuff but for super simple social integration this method can't be beat.
Image
User avatar
HughJohnson
NimbleKit Expert
 
Posts: 286
Joined: Thu Jun 18, 2009 4:44 pm

PreviousNext

Return to Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest