728x90

 

 

 

  • Steven Stern (sterndata) 

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    1 year, 7 months ago

    What’s your .htaccess file for this site?

    Thread Starter

    el_foz 

    (@el_foz)

    1 year, 7 months ago

    Hi Steve,
    Thanks for responding!

    Hmm, I’m on a Windows server. Sorry I should have mentioned that. There is no .htaccess file for IIS as far as I’m aware. Or?

    I’ve checked the default document list and it’s the same as for the working site.

    Moderator

    Steven Stern (sterndata) 

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    1 year, 7 months ago

    When I hit any 404 on your site, it goes to a hosting-supplied 404 page and not the one that should be part of your site, so it’s something related to what would be handled by htaccess. I don’t use Windows so I’m not sure if I can help.

    Thread Starter

    el_foz 

    (@el_foz)

    1 year, 7 months ago

    Ok, you might have pointed me in the right direction here. On the site that works, a random 404 shows me the WordPress “page not found” page, not the hosting company 404 page.

    I don’t suppose you’d be able to provide the part of .htaccess that would usually handle the /feed/ redirect? Then I might be able to figure it out.

    Moderator

    Steven Stern (sterndata) 

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    1 year, 7 months ago

    https://wordpress.org/support/article/htaccess/#basic-wp

    Thread Starter

    el_foz 

    (@el_foz)

    1 year, 7 months ago

    Fixed!
    I took a copy of the web.config file from the working site, changed the reference to the domain in one of the RULE tags so that it referred to the correct domain, and uploaded it to the broken site.
    The 404 handling immediately started being done by WordPress. It took a little while for the RSS feed to sort itself out, but that’s working too now – checked via Google Chrome Feeder extension.

    I haven’t copied the contents of the config file here because I’m not sure which parts, if any, might be sensitive info that could make my site vulnerable if publicly known. Although if the same file works for 2 of my sites, I guess there’s probably nothing sensitive in it…

    Thanks @sterndata for your tips!

Viewing 6 replies - 1 through 6 (of 6 total)

 

 

 

wordpress.org/support/article/htaccess/#basic-wp

728x90

101

14

In my Facebook account, where can I find these application IDs, secret key, all?

 

 

 

 

 

96

You should use the Developer App.

On the right is a section titled "My Applications" from which you can select an application to see its information.

You can also go straight here as well, which will list your apps on the left.

 

1

That url asks for a password, my normal account password doesn't work. Do you have to sign up for something else? – Neros Feb 2 '12 at 6:36 

  • 1

    Nevermind it seems chrome was having trouble getting past that page, in Firefox the page actualy works when you input your password. – Neros Feb 2 '12 at 6:50

  • 2

    One important thing... You have to be logged into your personal account not business account when following these directions. – user2779151 Sep 14 '13 at 12:11 

  •  

    You must be logged in as an administrator of the app for this to work. – Timo Huovinen Jan 15 '14 at 9:33

728x90

December 24, 2019 (Updated as per latest Facebook Developer Portal)

This blog post was originally written in December 2017. Facebook has changed it's developer portal user interfaces since then. We updated this blog post and included the steps as per latest developer portal steps.

If you ever need to integrate Facebook Login or use Facebook graph API, you can hire asp.net developers from us at affordable rate.

To use the Facebook API, like the Login with Facebook or Facebook Graph API, you need to create a Facebook App. When you make a Facebook App, that app will have an App ID and an App Secret. You need these credentials to do almost anything with Facebook, including going through the OAuth authorization flow and working with Facebook's Graph API.

With the App ID, you can send API requests to Facebook for data. The Facebook App Secret can be used to decode the encrypted data.

Please follow below steps to create Facebook application:

  1. Login to your Facebook account and navigate to https://developers.facebook.com
  2. if you were already registered for Facebook developer account, you can skip this step and go to step #3 of this post. If you are not registered on Facebook developer account, then you need to follow these steps:
    • Click on Get Started button from top right corner.

    • Click on next button from the popup

    • Enter your phone number and verify your account using text message or phone call.

    • It may be needed to Re Verify your account by Facebook.
    • Then enter verification code you got and click on the Verify button.
    • On the next screen, after verifying your account, 3rd step is to tell about you. Select Developer option here.

    • On welcome screen, click on Create First App button. Here you'll be asked for Display Name and Contact Email of your New App ID. This app name will be shown to end users when they will try to “Login with Facebook” and they are redirected to Facebook website for login permission. So, make sure you give a meaningful name here which can identify your website.



  3. If you are already registered with Facebook developer perform below steps:
    • Click on “My App” >> “Add a New App”

    • From the popup enter “Display Name” of your new application and“Contact Email”, then click on “Create App Id” Button.This app display name will be shown to end users when they will try to “Login with Facebook” and they are redirected to Facebook website for login permission. So, make sure you give a meaningful name here which can identify your website.

    • Complete the Security Check by checking I'm not a robot button and click on submit button and It will open product list page.

  4. From the product list page click on “Set Up” button from product with name “Facebook Login”.
  5. In the left side menu, click on the “Facebook Login” link to expand the sub menu. Click on “Settings” from the sub menu.
  6. Enter your website URL in “Valid OAuth redirect URIs”. For example, my website domain is yourdomain.com so I entered https://yourdomain.com
  7. Now expand the Setting menu and select Basic. Here you can find the App ID and  App Secret.Then click on the “Show” button in the “App Secret” text box. You can copy the “App Id” and “App Secret” which you can use for your Facebook API calls.

     

  8. By default when you create Facebook application, it is private and available only to you for testing purpose. End users can only use it after you make the app live. For the live app you must enter a Privacy Policy URL at setting > Basic.
  9. For Switching the mode from Development to Live, click on the status switch. After that, it will show a popup to switch the mode. Please select the Category of your app and click on the “Switch Mode” button to make your app public.
728x90

developers.facebook.com/tools/explorer/

 

그래프 API 탐색기 - Facebook for Developers

 

developers.facebook.com

 

Facebook Access Token Explorer

 

 

A

272

  1. Go to the Graph API Explorer
  2. Choose your app from the dropdown menu
  3. Click "Get Access Token"
  4. Choose the manage_pages permission (you may need the user_events permission too, not sure)
  5. Now access the me/accounts connection and copy your page's access_token
  6. Click on your page's id
  7. Add the page's access_token to the GET fields
  8. Call the connection you want (e.g.: PAGE_ID/events)

Share

 

 

stackoverflow.com/questions/8231877/facebook-access-token-for-pages

+ Recent posts