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 6832511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:52:03+00:00 2026-05-26T22:52:03+00:00

I click Add Reference, and add FacebookAPI.dll. Everything seems to work, i don’t get

  • 0

I click Add Reference, and add FacebookAPI.dll. Everything seems to work, i don’t get any errors while writing the code, and code completion works fine.

Then, when i try to build it, it gives me an error saying it can’t find the Facebook namespace, the reference is still in the reference list, but it’s like i haven’t added it anymore.

It works with the example included when you download the API.

I’m using visual studio 2010.

  • 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-05-26T22:52:04+00:00Added an answer on May 26, 2026 at 10:52 pm

    It’s not clear what kind of app you’re writing, but have you got “Copy Local” set to “False” on the reference properties by any chance? If so, change it to “True”. Otherwise the DLL won’t be copied to the output location, which is where it’s required when you run the app.

    EDIT: Okay, now we’ve got a sample solution, the problem is clear – you’ve either got the wrong project type or you’re using the wrong DLL. The target framework in your project is “.NET Framework 4 Client Profile” but you’re building against the version of FacebookAPI.dll which depends on the full .NET 4 framework. This would have been obvious if you’d also told us that you’d got warnings like this (copied from trying to build it myself):

    Warning 2 The referenced assembly “FacebookAPI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL” could not be resolved because it has a dependency on “System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Client”. Please remove references to assemblies not in the targeted framework or consider retargeting your project. faceBookTest

    The solution is to either use the version of FacebookAPI.dll which is built for .NET 4 client profile, or to change the target framework version to just “.NET 4 Framework”.

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

Sidebar

Related Questions

Every time you start Visual Studio, the first time you click Add Reference to
I'm using the xfbml Add To Timeline social plugin (https://developers.facebook.com/docs/reference/plugins/add-to-timeline/), but when I click
When I click Add to Compare on a product, a message stating that such-and-such
Project: http://design.vitalbmx.com/fave/news.html When I click Add to favorites button (under main pic), in Chrome
I am trying to build a shopping cart site. When a user click add
I am trying to add click event to one of the widgets that use
I'm using Expression Blend 3 I click on add live datasource, add new xml
When I go to Printers and Faxes dialog, I can click the Add a
How to add a click event listener to my custom control made with wxWidgets?
I'd like to add a click handler for a button using jQuery, but the

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.