How to publish 'X is playing MyGame' on news ticker in Facebook? - facebook-graph-api

When my friends are playing Facebook-based games, I see "Friend's Name is playing Game's Name" in the news ticker. How can I achieve the same functionality for an iOS Game? Is there a special way of doing this, or is it just done using the Open Graph actions and objects?

Those are automatic 'discovery stories' - you can't post them manually

Related

Swift 3 select multiple photos using UIImagePickerController

I have a UIImagePickerController which with it I select a photo from Library, or take a photo with Camera and then show the selected photo in a UIImageView. I want to upload this photo later to an API (which still don't know how to upload photos, have never done it).
So what I want is a feature like WhatsApp selecting photos feature which you can select let's say 20 photos and then you can see them. (I mean for my case I only have one UIImageView and can only show one photo.
What is the solution? please keep in mind that I want to upload this photos later.
Thanks in advance
As Ethan Halprin commented, I used https://github.com/hyperoslo/ImagePicker and it solved my issue. It looks really nice and I think the customer will like it :)
I also found TLPhotoPicker and DKImagePickerController helpful since the Hyperosolo's image picker is deprecated DKImagePickerController and TLPhotoPicker was a good choice left in swift.Some other references :-
More helpful answer

Share Dialog vs Share Button - noticeable differences

https://developers.facebook.com/docs/sharing/reference/share-dialog VS https://developers.facebook.com/docs/plugins/share-button
In experimenting with both the FB.ui share dialog and using the fb:share-button / class="fb-share-button" I've noticed that using the FB.ui method does not offer sharing options (Share on your timeline, friends' timeline, etc) in the dialog and the og:description is not displayed on the FB post (yet it is in the post preview) and markup formatting for the display is different. It's obvious that both methods are using two different services:
FB.ui: .../v2.0/dialog/share... and Share Button: .../sharer/sharer.php?...
One would think that by leveraging the JavaScript SDK a developer would have more options to customize the sharing experience, but in my experience thus far, that doesn't seem to be case.
Yes, I've run my links through the linter, my open graph tags are set properly and I've added the "scrape=true" to my query string.
At the very least, I'd hope that the og:description would get displayed on a FB post by leveraging the SDK and that the formatting would be the same. Any validation of this behavior and workarounds?
Same problem here; plus the share count on the url is not updated if shared with the share dialog; it is if it's done using the share button.
pretty weird, a bug maybe?

best way to send friend a card through FB app

I have an app that allows users to construct a personal card with a message, photo, song, etc. for an occasion (birthday being just one example). You can check it out here: apps.facebook.com/getmixxd
I was using graph api to allow the sender to post to recipient's wall with the option to make it public or private. As of Feb 5th this functionality is disabled apparently.
My question is what is my best alternative? Just using the dialog box doesn't seem to solve the problem because one of the features users asked for was ability to specify when the card was delivered (my friend's birthday is tomorrow, but I want to construct the card today and have it delivered tomorrow). Also, none of the preset custom actions appear to apply.
Looking for some advice from FB gurus on what my best option is...
Thanks!!
Mike
First, I'm not an FB Guru, and this is also problem of mine.
Here's what I've repeatedly seeing for the solution:
https://stackoverflow.com/a/15234553
Your best bet is the Open Graph API, which is you have to submit an Application for and "action" an a corresponding "object" for that. For example action "cook" and object "recipe".

BlackBerry Cascades UI File Selection

I have set up a BlackBerry Cascades-UI project. I am using QML to define the look and feel of the user interface. I need to provide the user a method of selecting an image from the device photo gallery after the screen has been touched.
Does anyone have any idea on how to provide a list on the screen with all the images in the gallery and their appropriate names after a touch event has been triggered?
Perhaps someone would like to know even though nobody answered.
There currently is no Photo Gallery dialog (though it is announced and will probably be released in an update in the near future). However, it is possible to invoke a native file selection dialog from another thread. For more information about this, go to the support forums for Cascades and find a topic called: "Using native filebrowse and filesave dialog in Cascades".
Here is a link.
on beta 3, you can use file picker to select file(s)

certain link for like?

is there a specific link that I can use for "Liking" something? I'm looking to make a rating system that when someones votes something as 5 stars, it automatically "Likes" the image or whatever. I know there is www.facebook.com/plugins/like.php?, but when I use that in my JavaScript, it automatically forwards them to a page with a like button only on it...
FYI, I'm not hiding the like button, it will be known by users...
I also tried .trigger('click'); but that doesn't work with the like button!
Thanks in advance!
You have stumbled across some road-blocks that Facebook implemented to prevent abuse of their like button. You will have to play by their rules to play in their sandbox they built. So use the social plugin: http://developers.facebook.com/docs/reference/plugins/like/