Adding our own option to any file like photo, video etc - blackberry

After you installed the Facebook or twitter, we get an opton "Send to FaceBook" or "Send to Twitter" appearing in RIM's native app camera. For example, if you select a photo in RIM's native Camera app or Media Center app and click Menu key, the "Send to Facebook" is listed. After you click on it, it seems to invoke the installed facebook app and pop up a screen so that you can send the photo to facebook.
My question is, how to add our own option to any file like photo, video etc

Your custom app can add a custom menu item to some native BB apps (e.g. Camera, Calendar, etc).
To start with - check the documentation on how to do this. Also check some JDE samples on this (should be present on your PC as a part of BB SDK).

Related

Open Instagram with HTTP URL - opens first IG, and then Safari

I'm testing on iOS 13.2 this link from a webpage:
Open IG
It first opens the IG app, and then right away opens IG in Safari, and below displays a message if I want to switch to the app.
why does it make two actions at once?
I want to make only one action - either have it open Instagram right away with the correct path, or open instagram in web version right away.
I know I can use this link format instead:
Open IG 2
But it is not the format I wish to use, but I'm not sure if it supported on all phones, and also it might do nothing if a user does not have the app installed, right?

Unable to like using Facebook iOS SDK

I am trying to implement like in my Objective C application. If I am not logged into Facebook, then after tapping Like button, application opens login screen. I will log into my account. Then screen goes light gray with gray logo of Facebook for a while (with 2 shortly showed grey facebook screens before that) and then I am redirected back into my app. If I am logged into Facebook when running application, everything is the same except not showing login screen.
So my problem is, that I am not getting correct confirmation dialog that should appear after logging into FB account and I am redirected back into my app. Like is not placed.
What can be cause of this behaviour?
I have placed all 3 needed rows into .plist and this is how I am creating like button (p_webView is my subclass of UIWebView):
if (p_webView.fbLikeButton == nil) {
p_webView.fbLikeButton = [[FBSDKLikeControl alloc] init];
}
p_webView.fbLikeButton.objectID = p_webView.article.url;
[p_webView.fbLikeButton setFrame:CGRectMake(p_webView.fbLikeButton.frame.origin.x, height + 5, p_webView.fbLikeButton.frame.size.width, p_webView.fbLikeButton.frame.size.height)];
[p_webView.fbLikeButton setCenter:CGPointMake(p_webView.frame.size.width / 2, p_webView.fbLikeButton.center.y)];
[p_webView.scrollView addSubview:p_webView.fbLikeButton];
More information - I have tried this on simulator (there I do not have FB app, so it was using Safari only). After loggin in, I have got error:
"The page you requested cannot be displayed at the moment. It may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have permission to view this page."
As it might be difficult to find solution - one needs to be in FB app as administrator, developer or tester for like button to work when testing app that has not been approved by Apple for using native like button yet.
You are doing right.
Maybe you are missing something:
You have to create fb app id and add it to iOS app. So you can open fb app when tap on Like button.(I think you did this)
You have to add your fb acc (using to login) to dev/test roles in your fb app. If not you will be pushed back to iOS app after login to fb (in fb app or safari). <--- I think your problem is here.
Ref: https://developers.facebook.com/docs/apps/test-users
If you want everyone can login and like, you have to Submit Your App for Review (with Native Like button). After that, everyone can use Like button.
For the fb app setting, in the "Status & Review" tab, turn on "Do you want to make this app and all its live features available to the general public?"
After that you can see this "This app is public and available to all users" in Dashboard tab, instead of "This app is in development mode and can only be used by app admins, developers and testers"

Does app contain, display, access third party content ( app store review)

So I programmed in the SLComposeViewController for Social Framework to add a FB share button. From Google I found the Facebook logo that I used as a UIImage to place on top of the FB share button. When the user clicks on the FB share button there's a link to my app store page. The user can either type a message up or not and click POST to post that message on their Facebook pages. When they post that message they will see my App store page link there too.
Does app contain, display, access third party content
I'm trying to submit my app for review, do I click YES or NO for...
If I click YES then I need to get permission. Who do I get permission from? Google for finding a Facebook logo on their site or Facebook for using their logo to post message to their site?
Just visit facebook here and read this about how what to do, this will explain what they want YOU to do with branding and HOW their logo should appear, they also give you access to download their own image assets to use, they are very high quality:
https://www.facebookbrand.com/
And no, I doubt your app would qualify you for a YES to the App Store question, I'll have to find some very recent examples of this for you, but I wouldn't worry about this at all for your purposes.
And for fun and to make sure people see this, here's more brand assets:
Twitter: https://about.twitter.com/company/brand-assets
Instagram: https://www.instagram-brand.com/
Google: https://developers.google.com/+/branding-guidelines?hl=en and http://gplus-brand.appspot.com/
Apple: https://developer.apple.com/app-store/marketing/guidelines/
Tumblr: https://www.tumblr.com/logo
Youtube: http://www.youtube.com/yt/brand/
Reddit: https://www.reddit.com/about/alien/
Pinterest: https://business.pinterest.com/en/brand-guidelines
LinkedIn: https://brand.linkedin.com/
Yahoo: https://info.yahoo.com/press-center/logos-images
And how about some Brand asset colors as well:
http://jgthms.com/social-media-assets/
And a whole huge list of brand assets:
http://findguidelin.es/

How to write URL to force mobile Safari to display "Open In..." dialog for Dropbox links

I have an MP3 in Dropbox that I am able to force browsers to download rather than handle natively, with the exception of Safari on iOS. In this case, a straight link on my website to the file opens the Dropbox mobile site with the file showing this:
http://imgur.com/mePjw0m
The Download button in the center just opens the MP3 via QuickTime within Safari, while the button on the top right of the page opens another screen that offers "Direct Download" and "Add to my Dropbox". "Direct Download" plays the MP3 within Safari, while "Add to my Dropbox" opens a sign-in page. This is not only inconvenient (why bother havign native apps if Safari won't offer links to them?) but also frustrating for the end user. Not everyone uses Dropbox, and of those who do, most probably aren't inclined to log in via Safari when they already have the app.
What I'm looking for is some way to force mobile Safari to show the "Open In..." menu (best solution) or at the very least, for Dropbox users, to show the "Open in Dropbox" button that appears when Safari can't handle the file natively. The Dropbox app as well as other cloud storage apps are registered in iOS to handle MP3s. When users open PDFs in Safari they are given the choice to open in other apps as well, so there should be no reason that Safari can't do the same with MP3s.
Safari on iOS will not show an "Open in" option for mp3 files, so what you are asking may not be possible.
If you want to load the file directly (bypassing the Dropbox webpage), in the Dropbox link change www to dl. On top of that, normally if you add ?dl=1 to the end of the url it will force it to download. However, you will see that in iOS Safari it behaves the same way as if you just changed the "www" and does not allow you to send it to another app.

Link to app on Facebook "Sorry, this page isn't available"

I have a native mobile iOs app, that shares updates on Facebook. This all works.
When a user shares something through the app, you get the following in the Facebook news feed:
User X shared a link via My iOS App.
You can then click on the "My iOS App which tries to open a URL like "https://www.facebook.com/apps/application.php?id=XXX"
That URL shows the error "Sorry, this page isn't available". On the Facebook developer page I see "This app is live" so I'm wondering why the URL isn't working.
Is there some extra action I need to take?
Select "App Info" on the left side when you are in developers.facebook.com, as shown below
,
and then fill in your app details, and click the button "Create New Page", as shown in the second diagram below
.
This will lead you to the setting up of an app community page for your app. Once completed, select the new page as the app page, and save. The "via" link will go to this page.
check Sandbox Mode should be turn "off"
Have you submitted your app page for review? Go to Edit App -> App Details (left side) -> Submit App Detail Page
Enter your App Store App ID in the settings of your Facebook app. Otherwise, Facebook can't find the app on the device to open it.

Resources