iphone application id for facebook connect - iphone

In the advanced section of my facebook app that I use for posting feeds to a user's profile from an iphone app, theres a section to enter the "iPhone Application ID". And it says - "If you have an iPhone app using Connect, fill this in with your Apple-provided application ID."
I entered my app id. But when I post anything via the iphone fb connect, I don't see any sort of link to my app.
Am I missing something ?

Facebook developers connection gives an explanation. Basically when an app is placed on the app store, there is a unique number assigned to the app by Apple to identify it. This number is the ID they are requesting.

Got the same issue, just to check that you are using the correct ID, if I this is the link from iTunes:
http://itunes.apple.com/gb/app/whats-on-reading/id347859140?mt=8
then the bit that you use for the iPhone Application ID field in Facebook is:
346859140
Is that what you did? Did you solve this? I only did this a few hours ago so am hoping it is just the time it takes to replicate the changes on Facebook. Would be very interested to know how you got on and if your issue is solved.

Related

can people see Facebook IOS app on their facebook?

I've created an IOS app as a Facebook Developer. So my question:
Are people able to see the app when they go into their Facebook - like in the Browser? Or are Facebook IOS apps only something that you can see in the actual app on the iphone/iPad that I'm creating?
Depending on whether the Facebook developer configured a canvas facing site will show what the end user will see.
Any application made by a third party once set to public in app settings can be viewed by anyone.
If you app is made for iOS then either the user will see a misconfigured webpage or dialog asking whether the user wants to send to mobile. All of this of course depends on how the the developer of the application sets everything.
See the documentation for detailed information
https://developers.facebook.com/docs/facebook-login/v2.2

How to get itune link of our own application?

I am new to iphone development .I am in to project where application iTunes should be able to share on Facebook,twitter.I want to know how to obtain the iTunes link of the application.
Thanks in advance
No you can't. You should give the link manually to the app or you should program the app to get the link from your own web server using web service. Here also you should update the link in you web server
The iTunes link needs your app id from iTunes connect. There is no way for your application to actually know that number. However the app does not need to be released already to get the link, only to be created in iTunes Connect. That way you can still implement sharing functionality within your app using the link, and only then upload your binary.
As everyone suggested, you need to create your app within iTunes Connect to get the App ID.
Once you have this, you can hardcode it into your app. An alternate way is to query your own server and have this information ready at the time the app is launched.
I would really suggest going for the hardcode method since the App ID doesn't ever change once it is assigned to your app.
Here's an example of how I usually embed the URL for my apps with its App ID: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=APP_ID&mt=8&partnerId=30

Facebook Authorize not working on free version of app

I have a free and paid version of my app on itunes but as the free version has in app purchase I cant use the same bundle id across the two apps and therefore the only way I can see of adding facebook to the free app is having a second facebook app registered?
I have done this but for some reason when calling [facebook authorize: permissions] my app boots up the facebook app but returns straight away to my app, not getting in to any of the handleOpenUrl functions or even asking the user for permissions. The code is identical line by line to the paid version of my app with the only difference being the appID that is used. Any ideas what would cause this? Facebook did work on both apps until the recent updates.
After further playing around with this code I have found it works if I tell it to not use the FB App and to instead use safari authorisation. Still failing to see why I can use the app on one app but not another :s
Log in to developers.facebook.com and check your iOS bundle ID for your free app carefully. Make sure the bundle ID you tell Facebook is exactly what your app thinks it is. If it's not identical, the new Facebook app will not allow your app to authenticate.
You can have multiple iOS apps use the same Facebook app. Check this link..
https://developers.facebook.com/docs/mobile/ios/build/#multipleapps
There are three steps:
Add the additional bundle id in your apps "iOS Bundle ID" file in your faceBook app settings.
Then in your iOS apps, use the 'urlSchemeSuffix' option in the 'initWithAppId' method.
Modify the URL Schemes property in the info.plist.
The link explains it in detail. No need to register a 2nd app with Facebook.
Hope this helps.

facebook connect for ios question authentication application id and secret

perhaps a stupid question, yet...
We're using the "new" ios facebook connect sdk (https://github.com/facebook/facebook-ios-sdk) and a few questions come to mind.
In the old sdk, you would have to pass a "secret key" (known only to you) in order to obtain a session so that you could use the facebook api, this made sense.
With the new sdk, all you need to pass is "Application Id" and then the user logs in, then he is able to post any message and it will appear as if my application (the facebook application identified by the application id) posted it.
This makes little sense to us, if someone obtains our application id (not mentioned to be a secret anywhere), he/she will (without any problem) have the ability to post as if he was the owner of our facebook application.
Can someone explain this and how this is prevented using this new SDK?
a few more issues we're unclear about are:
in the facebook application
settings, there is a choice between
"Native application" and "HTML5 /
mobile web" currently ours is set to
HTML5/Mobile web (which is the
default) what's the deal here?
perhaps this correlates to the
previous issue?
there are two more settings: "iOS Bundle ID" and
"iTunes App Store ID" it is again
unclear what these are used for.
Currently none of these 2 are set in
our app and we're able to submit to
user walls without a problem using
the "application id" only in our
iPhone app.
Any tips and hints appreciated!
thanx,
-tzurs
iOS Bundle ID is used to prevent that from happening. You specify the bundle id in your info.plst (e.g., com.your_company.your_app) so Facebook knows that your iPhone app is authorized to use your Facebook appication.
iTunes App Store ID is used to create a link from your Facebook application's page to your iPhone app on the app store.

URL for sending a user to the app review page on device's app store

What's the URL to launch in order to bring the iTunes App Store to the front, and open it to show the Reviews page of an app?
I want to send my users to the "Write a Review" page.
Some other SO answers provided URLs like the one below, but it doesn't seem to work:
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=12345678&pageNumber=0&sortOrdering=1
Any suggestions for a URL that'll work on iPhone and iPad?
Update: iOS 4.2 seems to have fixed this and links now open the App Store app directly rather than the review page.
This article Dissecting iTunes links explains everything.
Heading straight to a review form
It’s also possible to send someone
straight to the review form for an
app.
https://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=337064413&type=Purple+Software
Simply replace the ID with your app’s
ID to create a URL for your app.
On a desktop or laptop, this will take
you directly to the review form in
iTunes for the app or item. On an
iPhone or iPod touch, this will open
MobileSafari, then open iTunes or the
App Store app on the reviews page,
leaving the user only one tap away
from writing a review.
To find out an item’s ID, right (Mac &
PC) or control-click (Mac) on a link
to the item in iTunes and select Copy
Link. The result will look something
like this.
http://itunes.apple.com/au/album/dig-your-own-hole/id19605549
http://itunes.apple.com/au/app/consume-mobile-isp-packages/id337064413?mt=8
The ID is the number in the URL after
“id’.
It might be worth noting that this URL
was created using iTunes 8. I don't
think there’s a way to create review
links in iTunes 9, so maybe this URL
is being phased out. Use with caution.
Update: #mareMtl has provided an
alternative review link for apps.
Please note that it only works on
iPhone OS devices.
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=337064413
I tried a bunch of different links, this is only one working for me on iPhone AND iPad consistently:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8&id=YOUR_APP
Check out Appirater - http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/
Every time the user launches your app, Appirater will see if they’ve used the app for 30 days and launched it at least 15 times. If they have, they’ll be asked to rate the app, and then be taken to your app’s review page in the App Store.
this works for me:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=584691809
Am using Appirater for Rating my App
These links in AppiRater
// for ios6 or earlier
NSString *templateReviewURL = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID";
// for ios7
NSString *templateReviewURLiOS7 = #"itms-apps://itunes.apple.com/app/idAPP_ID";
These links works fine .
But takes me to "Details" page of the app .
But it should go to "Ratings and Reviews" page..
suggest me any idea
Thanks
iTunes has a link maker you can use to get the URL. Tested on my app. It works.
For Requesting for rate and review to user after iOS 10.3+
The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.
import StoreKit
func requestToRate() {
SKStoreReviewController.requestReview()
}