Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8791077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:47:37+00:00 2026-06-13T22:47:37+00:00

I do lots of stuff in my javascript code for posting feed in page

  • 0

I do lots of stuff in my javascript code for posting feed in page as m`, but how i can get permission through javascript with just one click.

This is my code.

<body>
<div id='fb-root'></div>
<script src='http://connect.facebook.net/en_US/all.js'></script>
<p>
    <a href="javascript:;" onclick='postToFeed(); return false;'>Post to Group</a>
</p>
<p id='msg'></p>

<script> 
  FB.init({appId: "apid", status: true, cookie: true});
  function postToFeed() {
  FB.api('/page_id/feed', 'post', 
             { 
                 message     : "It's awesome ...",
                 link        : 'http://csslight.com',
                 picture     : 'http://csslight.com/application/upload/WebsitePhoto/567-grafmiville.png',
                 name        : 'Featured of the Day',
                 from: 'pageid',
                 description : 'CSS Light is a showcase for web design encouragement, submitted by web designers of all over the world. We simply accept the websites with high quality and professional touch.'
         }, 
         function(response) {
             alert(JSON.stringify(response));
         });
  }
  </script>
  </body>

Output of above script is

enter image description here

But i wan’t to post as a BeCrazzy.com not Rajnish..!

simply, i want to post feed in page as a admin. please help me. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:47:38+00:00Added an answer on June 13, 2026 at 10:47 pm

    There is a tutorial here that shows you exactly how to do this:

    https://developers.facebook.com/docs/howtos/login/login-as-page/

    You will not be able to use the Facebook Javascript SDK to make the API call signed with the Page access token, you’ll need to use something like jQuery.ajax() to do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seeing lots of SOAP/RDS stuff, but just want to dump some MySQL data and/or
I am stuck with connecting to Oracle DB, have read lots of stuff but
Lots of Installer questions, but I can't find the answer to what I want.
Lots of tutorials around the net but none of them can explain me this:
I'm having an interesting but difficult problem with my JavaScript code. Basically, I'm trying
I've built a working page with lots of javascript. The javascript is placed in
(Note: I'm using jQuery below, but the question is really a general JavaScript one.)
I have a linq like syntax: MyListName . Where (Lots of stuff can() be
I read a lot of JavaScript code and see lots of different styles of
I have an asp.net website, but I need to pass stuff to javascript to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.