Sending facebook business page invitation via request dialog, recipient receive nothing - javascript

I'm new to facebook development and have done a lot of research and start getting my head around, i've come to realised that many coding implementation available online were using FBML which will be discontinue very soon, not much luck to find resources or tutorial for the iframe methodology.
At this stage what am i trying to do is to put a button on a business page when user clicks a friends invitation pop up will be appear on the screen. What i found from developer.facebook.com was the following link:
http://developers.facebook.com/docs/reference/dialogs/requests/
by using the request2.0 javascript sdk to trigger the pop up and send invitation to users. I followed the tutorial as stated and has been successfully get the pop up dialog box shows, after selected friends that i want to invite i clicked send then the window closed. (i used the function "sendRequestViaMultiFriendSelector()" and did nothing on requestCallBack as shown from the example.) and the X account did not receive any invitation or notification of my invitation at all.
I also read:
Link 1
and
Link 2
I tried to understand but i got confused by the mix of php and javascript in certain stage.
Would be appreciate if anyone could provide me some explanation (or links for me to read if you are lazy :-D)
***Note: Please be aware that i'm not asking a question without doing any research. I have experienced with asked by a developer/user to create my question instead of asking under his post. And thats why i wrote this.
Thank you for your time to read my post.

I've recently tried the same thing as you did and i've been successfully sending request but whenever user click on the invitation link, it directs user to a page with full canvas like at apps interface. I got this work by attaching the url into canvas under apps setting at the configuration page

Related

Hosting a Javascript Source File on to Firebase

I am new to Firebase and thus I am asking this question. Also, I searched something similar to this question, tried them but failed. Thus when writing the reply, it would be great, if someone can add even the significance of the steps.
I have developed a chatbot and code at the following url being loaded when I use the web widget provided by the framework:
http://www.buildquickbots.com/botwidget/v2/demo/static/js/sdk.js
Every time user clicks on the webwidget, the above url gets opened which I doesn't want to happen. Thus I planned to host the code at the above url on to Firebase so that when user clicks on the widget something like myapp.fireabse.com/botwidget/v2/demo/static/js/sdk.js opens up.
How can I do this with nodejs backend?
The sdk.js URL which creates an iframe and appends it your website in a widget. And this domain name is only visible only if you inspect the browser. Check Liva widget: http://www.livafluidfashion.com/
Solution 1:
If you want to see the domain name as myapp.fireabse.com then redirect the incoming traffic from "myapp.fireabse.com/botwidget/*" to "www.buildquickbots.com/botwidget/".
Solution 2:
You can get "firebase.buildquickbots.com" as a domain name also. For that, you have to talk/mail to Gupshup support people.

Writing a comment onto a 3rd party facebook wall via website link

Really wracking my brains about how to do this but i basically dont even know where to start.
Basically twitter has functionality that allows a link to open a twitter box that a user can populate and then post directly onto a chosen twitter feed:
https://about.twitter.com/resources/buttons#mention
Its super simple, all it requires is changing the URL parameters of the target link.
Im trying to do something similar with facebook. Ideally a link clicked on my site would open a facebook page with a prompt for user to type their comment and login to post to the 3rd party wall. I definitely do not want to be handling any FB authentication on my end as i imagine this would be far beyond my rather novice coding abilities.
An alternative would be to capture the comment with a text box on my end and then pass this through to facebook to write onto the wall.
Ive trawled the net and stack exchange looking for solutions but most seem to be geared to putting a comment on the users wall rather than a 3rd party.
Honestly im not super active on any social media anyway so my knowledge of how they function is quite limited. If anyone could give me a steer and some possible solutions (or alternatively just out and out that it is impossible) that would be fantastic.
You can use the Facebook JavaScript SDK, and invoke the feed dialog using that.
The feed dialog has a to parameter into which you can fill the Facebook ID of the profile that you would like the user to post to. However, the profile who's ID you fill in there must have authorized the same app as the one that you initialized the SDK for. That means this approach is likely impractical.
In any event, here's a piece of example code.
If you would like to use graph API to post to a profile's timeline (using the profile-ID/feed POST endpoint), you'll have to implement Facebook Login as well. However, since Graph API v2.0 is mandatory for all apps now, you can only find those profile IDs of people who have also authorized the same app.
This is probably even less practical for you, given that you don't want to implement Facebook login.
As far as I can see, these are your only options to achieve what you are looking for at this time.

Confused about Twitter Javascript API

The samples I do find online are all about using the Twitter button.
Reading the Twitter Post API it's not clear where to place the code. It seems they are just telling the params expected, but not how the code should look like
I'm soooo confused with this API (:
Well, my need is to place my on my own website my own button. When the user clicked on it, I want to call my a Javascript function that should do the following:
1) Check if any user is logged in
2) Login, if not
3) Check if my Twitter App is already installed on the logged in user
4) Request permission, if not
5) Post a message on his timeline
In fact, I don't even know if I need a Twitter App in order for people to post on their own timeline from my website?
Anyhow, I'm looking for something I can put on a single JavaScript function and that does not involved any Twitter specific button.
I would imagine this to be the simplest of any Twitter APIs but somehow all samples I keep finding online refer to use the Twitter button.

Can I post a predefined message to a user's wall on Facebook?

I am creating a website page for a contest which involves users to post a specific message on their wall with a specific hashtag in order to be entered. I was looking through the JavaScript API for ways to post a preset message to their wall. I want to create a one click button, just like Twitter does, where you click a button, login and then click 'post' to post the message. Is there any way to do this?
I looked at some things but the publish stream is deprecated and no longer allows to specify a message.
I would really appreciate any advice. Thank you.
You should read https://developers.facebook.com/policy . Especially 2.3: "Ensure that all content in the user message parameter is entered by the user. Don’t pre-fill. This includes posts, messages, comments, and captions"

JS API - Any way to tell if a user is posting as himself, versus posting as a Page he adminsters?

I have a basic JS API application that posts a score update for a game to both a user's wall and a Page. In testing, one person who posted was posting as a Page, rather than herself, so the post to the Facebook Page showed up as being posted by the Page she was administering, rather than her own profile. So I'm wondering if there's any way to switch the "Voice" the user is using, via the API. I saw something about a profile selector attribute in one of my searches, but couldn't get the selector to show up, so either I was doing it wrong or it's been deprecated? Any help appreciated!

Categories