Facebook URL scheme to post a new message from iPhone - iphone

I am developing an iPhone application, and want it to be able to post a message to Facebook, by using the Facebook app.
Is there a custom URL to do this?
I've found this page that has a list of Facebook commands, but it doesn't say how to post a new message...

The URL to post a new message to the wall is
fb://publish/?text=some text to post
This works with Facebook app 4.1... I don't know if it works with older versions.

This answer might help you... Especially this : fb://messaging/compose

If you are talking about using a feed post then you have to do this:
[facebook dialog:#"feed" andDelegate:self];
See here for more info
Also if your making this a mobile web app then you could try this:
http://www.facebook.com/dialog/oauth?
client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch
More info on web app

You could also just use Sharekit, that gives your users the option what to share. Otherwise, you'll have to use the FBDialog from the facebook-ios-sdk or a matching webview using the URL given by the other posters
The method you mention, directly calling the facebook app, a) requires the app to be installed (usually not the case on iPads, for example) and b) is not officially supported by facebook - the two other ways are.

Related

Web Intent URL to post on facebook

I would like to know URL which is link to post to facebook. On Twitter, I can use "http://twitter.com/intent/tweet?text=" to tweet. Although I was trying to search for one, I could not find it.
http://www.facebook.com/sharer.php?s=100&p[title]=YOURTITLE&p[url]=http://www.yourdomain.com&p[summary]=shortandsweetok&p[images][0]=http://www.image.to/appearwithlinkaftersharing.jpg
This works but the images might not show properly in some cases

Creating a Facebook App

I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.
Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.
Do I need to create an app? If so, which options do I select so I can access the clients facebook page?
How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.
Any help is greatly appreciated.
I would suggest you just use the facebook page's RSS feed.
Example
Take his page URL e.g.
https://www.facebook.com/pages/Lazery-Attack/6001014870
Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.
https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870
Voila, you now have an RSS feed you can integrate into the website you are building.
URL Breakdown
The URL is broken down the following way:
https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}
Vaid feed formats are:
RSS - rss20
Atom - atom10
JSON - json
Other Examples
Atom
https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870
JSON
https://www.facebook.com/feeds/page.php?format=json&id=6001014870
Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/
You can give it a try here:
http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available
The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).
No App or messy API calls needed!
Try it out here and simply paste the resulting code into your webpage:
http://developers.facebook.com/docs/reference/plugins/like-box/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages

facebook like page with url to application

I have been trying to create a Facebook like-page with a like linke/button to my iphone application. Like Camera+ (http://www.facebook.com/CamPl.us). I just can't find anyway how to make a page like camera+ - Any help?
I found out that this feature is outdated or disabled from facebook :-/
https://stackoverflow.com/questions/7273559/how-do-i-change-download-app-button-url-for-facebook-app

Twitter connect popup page for iphone

Does Twitter has the iPhone SDK which has a login popup like facebook iOS SDK?
It doesn't have. What I can recommend you is to use this DDSocialDialog library (just 4 classes) and you can have something similar
Look for this source code:
http://github.com/bengottlieb/Twitter-OAuth-iPhone
Thanks to Ben Gottlieb.
It opens the login page as a modal view.
Wrap the page in this:
https://github.com/cglong/FBDialog
No, it doesn't. You'll have to implement your own.
Sorry, they don't. But, as facebook, their REST API can return JSON payload and that's very easy to retrieve using NSURLConnection and parse using the JSON-Framework that you van find here
No Twitter does not have the login pop up as facebook has. You have to create your own login page. or you can get few from the open source.
Matt Gemmell and Craig Hockenberry, developer of Twitterific created MGTwitterEngine, an easy-to-use library of classes providing methods that make it extremely easy for the developer to access the Twitter API. see I believe there are a few other libs out there, but it's just as easy to roll your own because like Macha says above Twitter's API gives you the option to have the feeds in XML or JSON format.
Try this link
MGTwitterEngine
hAPPY cODING...

Facebook for iPhone, background wall post

I am implementing the Facebook iOS SDK into my app... and find no problems with that. BUT, what I can't find to figure out is how to send basic wall post to my facebook app wall.
What I want to do is whenever a user searches for something, the app sends a wall-post with the following text "#someUser just searched for someSearchQuery" to my apps wall (not the users wall).
Offcource this is something I want the user to be able to switch on / off in the settings page, so the user is aware of it.
How can I do this?
Best regards,
Paul Peelen
Use the new Graph API as described here:
http://developers.facebook.com/docs/api#publishing
Quoting:
"For example, you can post a new wall post on Arjun's wall by issuing a POST request to https://graph.facebook.com/arjun/feed"
To use the Graph API from Facebook iOS SDK do something like:
[facebook requestWithGraphPath:#"[your app's id]/feed" andParams:params andMethod:#"POST" andDelegate:self];
where params is a dictionary with following optional keys:
message, picture, link, name, caption, description, source