facebook-sdk-for-unity icon indicating copy to clipboard operation
facebook-sdk-for-unity copied to clipboard

error CS0103: The name 'IAPWrapper' does not exist in the current context

Open Thaina opened this issue 6 months ago • 9 comments

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Unity Editor Version: 2022.3.12f
  • Unity SDK Version: 18.0.0
  • Installation Platform & Verison: Android version X.X.X

Goals

Import FBSDK 18.0

Expected Results

No Error

Actual Results

Assets\FacebookSDK\Examples\Mobile\Scripts\SubMenus\IAP.cs(72,17): error CS0103: The name 'IAPWrapper' does not exist in the current context

Steps to Reproduce

Just import FBSDK into unity 2022.3.12f

Code Samples & Details

Just import FBSDK into unity 2022.3.12f

Image

Thaina avatar Jun 17 '25 09:06 Thaina

Exact same problem, exact same results

Facebook unity SDK 18.0.0 Unity version 2022.3.25f1 Android platform

GuruLahima avatar Jun 18 '25 08:06 GuruLahima

The script is in the folder "Examples", so I think we can just remove the folder if not necessary.

NguyenManhLinh2799 avatar Jun 19 '25 09:06 NguyenManhLinh2799

@NguyenManhLinh2799 We can, but it still a problem that IAPWrapper exist but we can't access it

Thaina avatar Jun 19 '25 12:06 Thaina

this happens to me as well. it feels like this version of sdk isnt compatible with unity 6 or the latest changes in android api 36. i strongly advice against using this version

freemason79 avatar Jun 25 '25 10:06 freemason79

this happens to me as well. it feels like this version of sdk isnt compatible with unity 6 or the latest changes in android api 36. i strongly advice against using this version

I totally agree. I use 17.0.2 version. It works fine for now.

Unity Version: 2022.3.53f1 LTS

MuhammedResulBilkil avatar Jul 02 '25 08:07 MuhammedResulBilkil

is some one from Meta looking into it?

freemason79 avatar Jul 02 '25 08:07 freemason79

Same problem here.

FB unity SDK 18.0.0 Unity version 6000.0.47f1 iOS


edit : for someone who using Unity 6 -> It works with 17.0.1 version.

  • iOS build should have to setup some postprocess script

CodezTree avatar Jul 11 '25 10:07 CodezTree

same problem here. unity 6000.0.58f2, sdk 18.0.0, platform android. I decided just delete the whole Example folder.

DinhHuynhTienPhu avatar Oct 16 '25 03:10 DinhHuynhTienPhu

It still persists in:

FB unity SDK 18.0.0 Unity version 6000.0.62f1 iOS

Javierdds avatar Nov 26 '25 15:11 Javierdds