How to display foursquare post-checkin screen in iphone app? - iphone

Adding the "foursquare check-in" ability to an existing app has raised some questions. Mainly, "what to show after the user has checked in?". Within the native foursquare client, after a checkin is completed, it will display a screen showing any badges, specials and points you earned with that checkin.
Since checking-in isn't the primary function of our app, we wanted a way to give the user an option to see this information on demand. We can get all of this information from the API's checkin response, but we didn't want to reinvent the wheel.
We tried using the custom URL for displaying the native application as described here (Client API) but that just displays the checkin information, not the results from it:foursquare://checkins/CHECKIN_ID
Is there a client URL that is undocumented that we can call to display this information, or will it need to be displayed in our app?

There is no custom URL / intent for showing post check-in information. For now you'll need to reconstruct your version of the post check-in screen.

Related

How to retrieve Facebook home news feed for apps?

I am currently attempting to retrieve the news feed from my Facebook home feed to include into an app. I know this used to be able to be done with the API however I have heard that it has since been removed. Is there any other way that you know of that would work or has it been added back into the API? It doesn't make sense why they would remove it.
No, there is no way to get a user’s feed via API. That used to be possible in the very early days (API v1), but has long since been removed.
It doesn't make sense why they would remove it.
Apart from user privacy (I don’t want my posts getting analyzed by some shady app with a developer located in $godKnowsWhere, just because they appeared on the feed of a friend of mine who might be using questionable apps), Facebook considers this a “core feature” – and 3rd-party apps are not supposed to replicate those in the first place. Facebook wants to make money from showing me ads when I view my feed, so allowing any other app to perform the same functionality would just mean loss of revenue.

facebook: preview News Feed stories created when publishing actions

I'm looking for a simple way to show the user some actions she has generated using my app.
It should look like the recent activity ticker displayed (RecentActivityUnit) in the timeline but only with some certain actions decided by the app and, most important, it should allow to remove the action (so activity feed plugin is not suitable)
First idea is to:
query opengraph to get desidered actions,
get related open graph objects
use facebook internationalization feature for displaying action.
Is it really what facebook does when it builds the activity log (or ) ?
Does anybody know a simpler way to do this ?
Unfortunately, this is the only way to do such a thing. If you know the Action IDs in advanced, you can skip the first step and simply search for the actions you need in Step 2.
Internationalization is only required if your site supports multiple languages. If it's for an app within Facebook, then this is recommended since users could be using your app in other languages.

Facebook Application Notifier in Newsfeed

Does anyone know how these kind of functionality can be implemented?
How can we get PlayNow kind of link ( I want to add my own custom link at that place)
How to get user images on this kind of aggregation.
As far as I can tell, this is a custom implementation from Facebook that you cannot control. Facebook provides custom aggregation on the newsfeed for certain popular actions, such as playing games, reading news or watching videos. As you can see in the aggregation you have posted, each app is different.
When a certain set of users read news using your app, and Facebook chooses to display an aggregation of "X and y more friends recently read articles" on those users' friends' news feeds, your app might come in that aggregation. The "read now" button comes on its own, since Facebook understands what your object is.
The aggregations you can control are those that consist of only your app, and you can do that in the Open Graph panel for your app on the Developer site. Just go into aggregations and design it to your choice. This is how I implemented it for myself:
This is how it would look like in a user's Home Feed. The text, "Share your twocents about Dil Chahta hain..." can be set up according to your requirements.
Secondly, you can control the aggregation for your own app on a user's timeline. This is how my app's aggregation looks on a user's timeline. Do note that currently, only two aggregations are shown for a user, instead of 3 as is displayed in my image (which was taken prior to the approval stage).
That is an aggregation that facebook is making for a specific type of applications: Games.
You can set your app as a Game in the app settings, first tab (Basic) first section (Basic Info) in the Category field.
If you do that then facebook should include your "game" when they aggregate this feed story to friends.
If you do that how ever then you can't change the text from "Play Now", as far as I'm aware.
Using the open graph you can define the obejcts which your app uses and the actions users do on them.
Then you can control how the stories produced by your app are aggregated into the timeline of a user.
The official guide is pretty straight forward and have good examples that you can follow to understand how things work.
If you have a more specific question regarding the open graph then ask away.

How to fetch data from website within the app?

I am developing an app for Lawyers to be used here in Brazil and one of the features of this app is to track the phase of the lawsuit as it develops through time.
It works like this: the user fill a form within the app with the info on the lawsuit and it is stored in a database. Whenever the user wants to know if the lawsuit has any new record, he'll push a button and will get the records ordered by date.
The website that the app will fetch is http://www.tjpb.jus.br the problem is that I don´t know how to code in order to get the app access that site, input the lawsuit number and get the reply displayed on an UIWebView.
So could anyone help me, or just give me a guide on where to find a solution for this?
You will need to asynchronously go to server(via that url) and parse data, then show the responses in UIWebView. But as far as i know you will need a PUSH Server and clerify which data you will show from that site.. This is a great source to get started with app development, you can find video lectures in i-Tunes too
I'm not sure what you really want to do, but one scenario could be that you build a URL, like
http://www.tjpb.jus.br/?...&...
and load it in an UIWebView or if there is a webservice there you should use a lib like ASIHTTPRequest to manage your API calls.

Facebook connect/oath for a newbie

I am currently starting to research a project that wants to use Facebook instead of a log in system.
the brief needs to be able to allow users to have their own customisation settings in a user panel, and also be able to connect with facebook friends within the context of the site.
Am I barking up the wrong tree?
Also, how much of the elements we pull from facebook can be styles our way. My designers is starting concepts before I get to that point of development and I don't want to waste their time designing layouts that can not be achieved.
Facebook allows you to pull a wealth of information. The user has to OK the permission for you app to access his/her Facebook profile, but you can get friends lists and their thumbnail pictures too!
Take a look here for a start:
http://developers.facebook.com/docs/authentication/
Its a bit of work, but worth it. You can pull straight data and store it on your server. According to Facebook, you can only keep the data for 24 hours or so (If I remember correctly) so you will need to "refresh" the data every day or so.