Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How configure share with the new Facebook approach? Check my code - what's missing?

$
0
0

Hi (using Appcelerator Studion creating an iPhone app with SDK 4.0 ..something)

I have configured ti.app and plist to work with the new facebook approach. However I do not get very many options on what is sharable. I can share an image and a link, but the title is stripped away once it hits facebook.

So the code below results in an image with a link to appstore and the name of the app in the top. How can I make the share dialog show all the stuff I want below?

fbShare_buttion.addEventListener("click", function (e){
 
 var fb = require('facebook');
    fb.permissions = ['publish_actions']; //tried with out without this
        fb.initialize(1000);
        fb.authorize();
 
 
        if(fb.getCanPresentShareDialog()) {
        fb.presentShareDialog({
 
 
               //my share box
                title: concert_titel + ' | ' + concert_day_long + ' | '+ concert_tid + ' | ' + concert_place,
                url: 'https://itunes.apple.com/us/app/ystadjazz/id898632553?l=sv&ls=1&mt=8',
                name: concert_titel + ' | ' + concert_day_long + ' | '+ concert_tid + ' | ' + concert_place,
                description: 'Download myapp for Iphone (also available on Google Play for Android)',
                caption: 'Concerts for all',
                picture: imgurl,
                namespaceObject: '(namespace):Concert',
                objectName: 'Concert',
                namespaceAction: '(namespace):Share'
 
            });
        } else {
            fb.presentWebShareDialog({
                //(same as above)
            }); 
        }      
});
I have tried configuring my Facebook app, but I am not sure that would actually be needed when all I want is to share information reg approx 30 concerts:

image link to where to download app link to our webpage Text 1 Text 2 I have created (in Facebook Developer) an object called Concert. Among other stuff I have the properties "link" and "title" created. Should I use them like "concert.title"....

I got no clue. Time is limited so I am pulling my hair here when discvering a simple update to an app was much more than that. Please help if you have a clue!

Thanks in advance /TOve


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>