ios


How to pass an id with FBSDKShareOpenGraphObject so when story is selected on Facebook it goes to that particular content in app


I'm using Facebook's Mobile Hosting API for iOS and open Graph Stories, I want to know how to pass an id with FBSDKShareOpenGraphObject so when selected on Facebook it goes to that particular content in app. So far this is how my Share Dialog looking like:
NSDictionary *properties = #{
#"og:type": #"product.group",
#"og:title": [NSString stringWithFormat:#"%#",self.group.nameCompleted],
#"og:description": [NSString stringWithFormat:#"is hanging at %#",self.group.locationName],
#"og:url": #"https://fb.me/HOST_ID"
};
NSLog(#"Group Id %#", self.groupId);
FBSDKShareOpenGraphObject *object = [FBSDKShareOpenGraphObject objectWithProperties:properties];
// Create an action
FBSDKShareOpenGraphAction *action = [[FBSDKShareOpenGraphAction alloc] init];
action.actionType = #"ACTION-TYPE";
[action setObject:object forKey:#"group"];
// Create the content
FBSDKShareOpenGraphContent *content = [[FBSDKShareOpenGraphContent alloc] init];
content.action = action;
content.previewPropertyName = #"group";
[FBSDKShareDialog showFromViewController:self
withContent:content
delegate:nil];
I want to know how I can send a "group id" associated with this "group" so when I handle to the:
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
I can show the right view controller and the correct group info.

Related Links

Swift calling delegate from didSet
iOS 8 and segues throwing unexpected exception
<TextInput keyboardType=“numeric”/> is not working in react native
UITableViewController scrollViewDidScroll: not called during cell removal
Using NSURLProtocol with NSURLSession
Uploading file to Amazon S3 with KMS key in xcode
UIlabel multiline in UITableView
unable to set custom font in NSMutableAttributedString
How to make different search field for every sections in UITableview?
Im having trouble with using a custom navigation bar in SWIFT
Error playing embedded youtube video iOS 9
How to stop shooting with “NSTimer”
Warning: Attempt to present <GuessMeFinal> on <GuessMeFinal.ViewController> whose view is not in the window hierarchy -Swift
SpriteKit Gravity and Velocity have inconsistent speed on different devices
How bad is it to embed UIWebView in UIScrollView?
How to hide the toolbar when user taps an action in a CNContactViewController?

Categories

HOME
jsp
demandware
identityserver4
android-activity
tcl
isis
swashbuckle
redhat
openvpn
wikipedia-api
webdriver-io
base
calayer
avplayer
vulkan
calabash-android
smartsheet-c#-sdk-v2
watchservice
embed
prerender
web-audio
eigen3
accelerated-mobile-page
similarity
jet
google-oauth2
smallbasic
paket
gcp
django-users
lifecycle
nib
deep-copy
ecdsa
transpose
rft
firedac
formatdatetime
backwards-compatibility
virtualmin
pulseaudio
http-status-code-500
sshd
billing
glumpy
git-config
olingo
xendesktop
pygments
viewengine
training-data
flexigrid
domo
actioncable
folder-structure
json-web-token
jasmin
sbrk
sqlhelper
gdk
imaging
bonecp
pkcs#10
jqgrid-php
acts-as-taggable-on
blueprint
location-client
siblings
sysadmin
jflow
progressdialog
hamlc
cellid
bapi
junitperf
exact-synergy-enterprise
duplicate-data
formsauthentication
spquery
xtratreelist

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App