OK, so I'm currently having a play around building an iPhone Web App, in which it displays an RSS feed. I have got it displaying nicely and looking good, but everytime a user clicks on the title of a story, they then get taken to the main site, which I don't want as it's not mobile optimised. The rss feed is a full rss feed, so the whole story is in the description. I want the description, along with other html code that's neccesary for the web app, to display when the user clicks the title. What link I direct them to is not a problem, the problem is how to get the description displaying along with the other html when they go to that link.
Is it possible to do this? Perhaps with javascript, which I don't really know but a few pointers would be great?!
Thank you!
You can package up the data you have and push it into a UIWebView.
Related
What I am trying to do from my Codenameone app, in Eclipse, is to send a piece of Text and an Image to my Facebook wall. Simple (or is it). Can anyone explain to me how to achieve this in Java (in a CN1 app) please?
I am not wanting the user to login to facebook in my app. Instead, to achieve this in the same way that many mainstream apps do this (eg. BBC News app) where they use the Facebook app, that is already installed on the device, in the list of destinations to Share to, which resolves the FaceBook connection issue. If the user doesn't have FB app installed then I will not make this available to them.
I have read articles online but they are a number of years old (post out of date) or make use of tokens (for which I have little knowledge how to implement).
Assuming the above is possible then any information on formatting the destination post would be a real plus.
Many thanks in advance.
Answered by #WizKid, #Diamond, #Shai Almog.
I have put a ShareButton component on my screen allowing the user share with FB, Twitter etc.
ShareButton sb = new ShareButton();
sb.setUIID("Label");
sb.getAllStyles().setAlignment(Component.TOP);
String imageFile = FileSystemStorage.getInstance().getAppHomePath() + getMyFileName();
sb.setImageToShare(imageFile, "image/png");
sb.setTextToShare("My Text to share");
This works nicely, although its doesn't put the text from my setTextToShare() into FB but does Twitter and Email. Strange. Photo goes up and it does allow me to type my own text in.
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
I have an audio stream I'd like to include on a Facebook Page, above or at the top of, the wall. Apparently BBC did this (though I can't find the link). Any suggestions on where I should start? I have the html hosted as a Heroku app right now, and can get it to display as a separate link on the Page. But how do I move it from it's own page and onto the Wall?
Thanks much from a FB Developer newbie,
Peter
Peter i believe what you might have seen is actually a page tab, with a feed app included to which they would have developed the feed itself as part of the tab..
tab http://developers.facebook.com/docs/appsonfacebook/pagetabs
if you wish to inlucude a flash movie or audio on the wall itself as a post.
https://developers.facebook.com/docs/opengraph/#audiovideo
if you can find us the link to the page you seen this on it would help alot.
This is not possible, there's no way to embed custom content into a facebook page wall, except via the existing public APIs (none of which will allow auto playing of audio content - this is deliberate)
I have a few questions that I hope some can help with, I am creating a facebook page for a business and they are wanting to display a list of products, that are pulled directly from there own website, is it possible to pull an XML feed from the website, then display the data using FBML? Secondly is it possible to only show certain content if the user has 'liked the page'?
Thanks
You will have to do this with a script on your server. E.g. a PHP-script which fetches the XML and outputs FBML.
FBML has been deprecated so building something with it is risky. It might stop working suddenly.
For showing content only to users that liked you fan page you can use following:
<fb:visible-to-connection>
Content for fans goes here
<fb:else>
You are not a fan, you do not have access to this content
</fb:else>
</fb:visible-to-connection>
For XML displaying of product you will have to build a facebook application that will run in fan tab tab.
I've been asked to build a facebook fan page, that displays the latest RSS from a blog and the latest tweets from an user.
Something just like this:
http://www.facebook.com/ibmargentina?v=app_223277347226&ref=ts
I already know the basics for working with FBML, but I can't figure how can I display external data...
Any tips would be greatly appreciated.
Thanks in advance..
Here you go: http://forum.developers.facebook.com/viewtopic.php?pid=129641
Here is another how to: http://www.howtoforge.com/rss_facebook_app_php_p3
Check out the discussions, everything you want to know is there.
http://www.facebook.com/apps/application.php?sid=59c8a2bba844922b5153efc9b9eba237&id=4949752878&ref=s
Facebook has put up a new guide for apps and pages at http://developers.facebook.com/docs/guides/canvas that is fairly helpful.
One thing that was a bit elusive to me at first was that you have one page that serves the canvas and then you have a second page (they recommend a subdirectory /tab) that serves the page content. So you can have a working app and canvas page and still not have it show up as a tab when you add the app to your "page".
(I know this is an old question, but I found it so I figure others might too)