Create facebook app and invite or bring your friends to site | 2my4edge

11 May 2013

Create facebook app and invite or bring your friends to site

Create facebook application using facebook and send invitation to all our facebook friends, Facebook app creation is very simple. and using that facebook application we can bring your facebook friends to your site, for that we have create a facebook app and have to proceed some steps, let see what it is.
facebook invite and bring
Step 1 :
Click here to Create a New facebook App

Step 2 :
Follow the steps, fill the blank field. as required.

Step 3 :
And you will get the application will be like this.
facebook invite and bring friends to website
fill all the field like the above. and save it. and Don't forgot your App ID : ' 466197570178384 '
PROGRAM :
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'466197570178384',
cookie:true,
status:true,
xfbml:true
});

function InviteF()
{
FB.ui({
method: 'apprequests',
message: 'Welcome to 2my4edge',
});
}

</script>
  
<a href="#try" onclick="InviteF();"> 
Click Here
</a>

Change as your App ID.

INVITATION SAMPLE
facebook invite and bring friends to website

Select friends who are want to visit your web site. and Done it.

If invite Iframe not arrives, Include this code
<script type="text/javascript">
if (top.location!= self.location)
{
top.location = self.location
}
</script>

INVITATION NOTIFICATION
facebook invite and bring friends to website

Check the live demo. Click Here


40 comments:

  1. how do you set the app up to run on a fb page? You show a program, but where does it go if you want to run the app off your fb tab?

    ReplyDelete
  2. You show a program but where to you enter that so it goes onto a facebook page tab?

    ReplyDelete
  3. @Julie
    You got to post the coding in HTML/JAVASCRIPT tab to see the desired results.

    UGC NET COMPUTER SCIENCE

    Hope it helps.

    ReplyDelete
  4. Thanks a lot bro!

    ReplyDelete
  5. not working ...in my case

    ReplyDelete
  6. It will work in your site, tell me your site name.

    @sur1076

    ReplyDelete
  7. Everything is working fine , but i am not receiving any notification. Actually to those i am sending invitation , they are not able to receive invitation.

    Thanks

    ReplyDelete
    Replies
    1. i am also facing the same problem. how to solve this

      Delete
  8. it isworking fine , no one is receiving any notification. Actually to those i am sending invitation

    ReplyDelete
  9. Please reply me, my site is http://justgethits.com
    invite link on my site will only be visible to logged in users.

    Please help me

    ReplyDelete
  10. hey guys thise who commented above !
    the tutorial was right ! but you users would have done mistake in setting your API secret key or some misconfigurations !

    if (top.location!= self.location)
    {
    top.location = self.location
    }

    this javascript is to break the iframe of fb app layout! may be this sometimes may not work!

    ReplyDelete
  11. Everything is working fine , but i am not receiving any notification. Actually to those i am sending invitation , they are not able to receive invitation.

    Thanks

    ReplyDelete
  12. hey frds just check Your Facebook Request all Notification Posted their. So this Code is Working But it posted in Request check it.

    ReplyDelete
  13. hey arun,
    i have tried this code but it doesn't sends any notification to my friends...
    also on google chrome it says the page contains script from unauthenticated sources...
    for more u can check over here...www.fonefood.in/app1/1.php

    ReplyDelete
  14. hi...

    code is working fine but not able to see any notification :(.

    Please help me ASAP

    Thanks

    ReplyDelete
  15. its not work.. not received notification. i want it on https://www.vishduha.com/invite/
    please resolve it. and help me to solve out this problem

    ReplyDelete
  16. Hi!

    I tried to do this procedure, but I not found this option: basic info under the settings option.
    Could you help with more details, please?

    ReplyDelete
  17. Hi guys, I just tried the code. And its working. I assume u guys have not upload the file to server and run it on Facebook itself.

    Try giving your friend the developer rights, then send the invitation again. See if the codes work?

    ReplyDelete
  18. how use in html

    ReplyDelete
  19. after receiving the notifation i want that after clicking the url user redirects to my site so how it is possible>

    ReplyDelete
  20. notification is not getting in facebook.. any hint??.. Help ASAP.

    ReplyDelete
  21. Sorry but I get an error in the invite dialog like: Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

    ReplyDelete
  22. Awesome script

    Arshad
    www.fileRTIonline.in

    ReplyDelete
  23. Great Post.. i have used :D Thanks buddy

    ReplyDelete
  24. arun iam getting this problem :
    Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

    ReplyDelete
  25. Everything is ok but the facebook iframe not getting the friends list...its loading for many many minutes but the loading never ends.

    ReplyDelete
  26. This code is not working. Please help

    ReplyDelete
  27. I got the notification , but when I open it on facebook it show message like "<> refused connection".

    ReplyDelete
  28. notification receiver only desktop website
    notification not receive on mobile app or mobile browser

    ReplyDelete
  29. Hello Guy, I applied it on my webapp but it doesn't work.

    ReplyDelete
  30. The issue with utilizing MySpace and Facebook is that everybody is doing it. On the off chance that you need to really help your site rank, you have to consider some fresh possibilities. buy facebook votes

    ReplyDelete

^