serdas 17 Junior Poster
function updateStatusViaJavascriptAPICalling(){
                var status  =   document.getElementById('status').value;
                    FB.api('/me/feed', 'post', { message: status }, function(response) {
                        if (!response || response.error) {
                             alert('Error occured');
                        } else {
                             alert('Status updated Successfully');
                        }
                   });
            }

hi this is what i understand
in the above code if there is an error it shows "Error occured" if not "Status updated Successfully"

in the below there is nothing set either error or no error nothing shows

there is a popup comes when user comes to the page
either they can publish or close the dialog box or/and click on skip

for them to be able to use this page i want them to publish, if they dont publish i dont want them to use the page
so if they dont publish i want the pop up to keep coming
or kill the process and say to use this page you need to publish or something like that

can that be done?

thank you

function streamPublish(name, description, hrefTitle, hrefLink, userPrompt){
                FB.ui(
                {
                    method: 'stream.publish',
                    message: '',
                    attachment: {
                        name: name,
                        caption: '',
                        description: (description),
                        href: hrefLink
                    },
                    action_links: [
                        { text: hrefTitle, href: hrefLink }
                    ],
                    user_prompt_message: userPrompt
                },
                function(response) {

                });
            }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.