Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-18-2010, 11:56 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 48
Question FBConnect dialog.attachment?

Is there any example code explaining how to change Facebooks API existing code to make it yours?

Code:
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
	dialog.delegate = self;
	dialog.userMessagePrompt = @"Example prompt";
	dialog.attachment = @"{\"name\":\"Facebook Connect for iPhone\","
		"\"href\":\"http://developers.facebook.com/connect.php?tab=iphone\","
		"\"caption\":\"Caption\",\"description\":\"Description\","
		"\"media\":[{\"type\":\"image\","
			"\"src\":\"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg\","
			"\"href\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}],"
		"\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}";
	// replace this with a friend's UID
	// dialog.targetId = @"999999";
	[dialog show];
That doesn't make any sense to me :S

Thanks
__________________
Discover new apps through art! Sound weird? Check it out! BigAppAd!
Follow me on Twitter!
JavaWizKid is offline   Reply With Quote
Old 03-14-2010, 06:46 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 21
Default

i have the same question .
plz some one help us ...
Leopard is offline   Reply With Quote
Old 03-20-2010, 12:48 AM   #3 (permalink)
Code before baby wakes up
 
RobotWoods's Avatar
 
Join Date: Sep 2009
Posts: 189
Default

Attachment (Streams) - Facebook Developer Wiki

has information on which field is what...it's JSON format, so in general you have something like:

"title":"value of title","src":"value for src"..."n","value for n"

but many of the extra \'s in the string are to escape the quotes so it doesn't terminate the string
RobotWoods is offline   Reply With Quote
Reply

Bookmarks

Tags
dialog, fbconnect, tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 267
17 members and 250 guests
@sandris, ADY, Alsahir, dacapo, Dani77, Desert Diva, djohnson, HemiMG, jansan, JasonR, MarkC, mer10, prchn4christ, ryandb2, smethorst, tomtom100
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:58 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0