-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share open graph android #747
base: develop
Are you sure you want to change the base?
Conversation
Bumped version to attempt fix for PhoneGap Build error `A plugin already exists with that plugin id and version`
@bixev Please add
|
OpenGraphAction ogAction = GraphObject.Factory.create(OpenGraphAction.class); | ||
ogAction.setType(paramBundle.getString("action_type")); | ||
String previewPropertyName = null; | ||
try{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space try {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@bixev How setup Facebook site? The documentation is terrible... I tried to create a story but I got the error Also.. You don't create a |
you dont really need to create object first if you use some standard action type (like "og:share") and an existing object (like a website page) |
Looked into this error more today:
Key is this line:
I'm using your code exactly, Facebook developer site is empty... I added nothing. |
Iterator<?> iter = ogActionProperties.keys(); | ||
while (iter.hasNext()) { | ||
String key = (String) iter.next(); | ||
if (previewPropertyName==null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces if (previewPropertyName == null) {
The open graph share dialog works when the native Facebook app is installed, but fails(still shows up as a share) when using web login. Any suggestions? |
Would this work cross-platform with the addition of the fix in #667? |
try this on both iOS and Android :
on iOS you have the thumbnail, currently on Android it is processed like share.
Commit allow to use share_open_graph, but the response remains something with keys like com.facebook.platform.extra.POST_ID instead of only post_id on ios or javascript sdk