FQL if friend then else add - Facebook for websites - facebook

I am trying to make a add as friend botton on my website. And that I have made without any problem.
Just by doing this:Bliv ven med mig
But it is only opening a new website where I can click add friend.
What I want is it to do, is to check when the user click connect, then check if we are friend, if we are then change the connect botton to a like box, otherwise it will ask the user to become "add friend" and then change to like box.
I know it is posible but not how..
I have seen this work on www.janlundsgaard.dk in the sidebar.
Hopes someone can help me :)

You won't be able to do this without the user's user id - which you won't be able to get unless they grant permission to your app. Once they've done that you can check easily if the user is a friend of yours by checking your/their friends list - but you won't be able to see this without having them authorise your app

Related

Can't submit Facebook Request for App Review - form has unticked criteria

I'm using a plugin (xyzscripts) in wordpress to automatically make a facebook post when I add a blog item to the website.
I need to create a Facebook App to be able to authorise the plugin to be able to this (to login to my facebook admin account and select the page it's to be posted onto from within wordpress)
The instructions have been fine so far and I'm at the stage of submitting the app for review by facebook but the application form needs to be classed as 'complete' before it can be submitted and there are 2 tickboxes which are not ticked and I'm not sure how to get them to tick?! It's not a tickbox that I can select, it seems facebook validates whether the criteria is complete based on the form, so although I think it's complete facebook doesn't and I'm not sure what else to add to make those tickboxes tick... in order to be able select 'submit for review'.
There's a screenshot linked to below showing what I'm referring to, of the tickboxes which aren't ticked.
Has anyone had this problem? Can the form see whats in the video and it already thinks it's not good enough? I have included the words 'pages_manage_posts' and 'pages_read_engagement' in the text describing why the app needs these permissions as I thought that might be a validating factor but nope, still no tick.
Any help much appreciated, thanks.
image of the facebook page showing the tickboxes which aren't ticked
I have included the words 'pages_manage_posts' and 'pages_read_engagement' in the text
You need to add the actual permissions to your submission, not just “mention” them.
Go to this section in your app dashboard, and click the “request” button next to those two permissions:
https://developers.facebook.com/docs/app-review/submission-guide#step-1--select-permissions-and-features

i want to share a specific link on facebook

the website im working on, is a buying and selling website, a user can post in a certain channel (electronics for example), and buyers can view it and express their interest. a user can view posts, and share a certain post through facebook or twitter. now i have done the share with facebook part and its working fine, but to share i have 2 options (or thats what i could find through out the search) it's either i share normally, a link, OR share via my app on facebook, and i want to do the via thingy. when i press share, the share tab opens and everything is fine except that the link to be share is not there, i dont want the user to type it in or copy it, i just want it to be automatically there!
that's the code i used, it takes my app id, and the app domain.
share through facebook
Looks like you are missing the "link" parameter in your share link - which is why the link isn't showing up for you.
http://developers.facebook.com/docs/reference/dialogs/feed/
https://www.facebook.com/dialog/feed?app_id=461240817281750&redirect_uri=https://peaceful-lake-7793.herokuapp.com&link=https://peaceful-lake-7793.herokuapp.com

Facebook auto respond to like button

I'd like people to receive a message in their inbox when they like my fanpage, and i'm wondering what's the best way to go about this?
I don't know if I can use the SDK to do it because there's no guarantee they will be viewing a canvas when they actually click the like button. They could be clicking the like button from the side bar, from a friend's page, from the official page wall, etc.
Other ideas?
This article describes how to capture a click on the Like button:
http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/
However, the only way to get someone's email address is by asking the user to authorize the email permission.

no way to create / register first application

I tried to create my first app.
I went to https://developers.facebook.com/ and clicked on 'applications'.
Then facebook redirected me to my facebook page. There was NO button to '+add an application' and no form to ask me if I needed 'something' to create the application.
I added a valid credit card because it's mandatory to get a 'developer' status.
How I can add an application to facebook. Is there a way to ask their tech department?
(edited)->
Also if I click on https://developers.facebook.com/apps it redirects me to my facebook page WITHOUT a window to 'Request for permision'
<-(edited)
Here you will have a button to add New App, a popup should appear to write the New App's name. I can see in your post you don't get this popup, but it is where you need to go. So try using this link on your Personal Account not your pages account, just like DMCS is saying.
Here you should get a couple of more links, and there's a how to link that might help.
<---edit--->
Here you can find a fast track to build a facebook app. Not sure if it's what you want, but it might help in some parts of the process.

direct share on facebook

this might seem stupid or irrelevant but problem is:
I want to make aa button, which is going to share the url and title on facebook(and/or twitter) directly. I mean, without visiting the standard share window of facebook.
As another option, I thought about:
when you click on a share button, facebook and/or twitter share windows are opened. I want to include those windows in a single one. however when I use iframes, I face two empty borders. along with those two frames I would like to add a button, when clicked, the url will be shared on both fb and twitter.
are those possible or allowed? if so how may I do this. please help me I'm so stuck
You can't share without the window, unless the user have authorized your site to post to Facebook in his behalf. Check this post on how to do it