Announcement

Collapse
No announcement yet.

[Plugin] [FREE] Facebook for Android.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Originally posted by marsellut56 View Post
    For version UE4 24.4 doesn't work, Unreal suggests to rebuild the project, but in the end nothing comes out
    I am experiencing the same problems. Someone was able to get it to work for this version?

    Leave a comment:


  • replied
    For version UE4 24.4 doesn't work, Unreal suggests to rebuild the project, but in the end nothing comes out

    Leave a comment:


  • replied
    Originally posted by Bimaswara View Post
    Hey AndrewFord. I'm currently using your fixed plugin version and have been checking the facebookSDK.Build.cs, in it, has looked like Douglas said. but when I try to package it to android (ETC1), I got some error like this

    UATHelper: Packaging (Android (ETC1)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:977: error: cannot find symbol
    UATHelper: Packaging (Android (ETC1)): ERROR: cmd.exe failed with args /c "C:\Projects\tkd1monorepo\ue\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleRelease
    PackagingResults: Error: Unknown Error

    am I missing something here?

    (unreal version 4.23.1)
    (min SDK 28, target SDK 28)
    (SDK API level "latest", NDK API level "android-19")Click image for larger version

Name:	facebookSDK.png
Views:	683
Size:	146.3 KB
ID:	1729558
    any news on this? I fixed everything but it comes to this error when launching

    Leave a comment:


  • replied
    Hey AndrewFord. I'm currently using your fixed plugin version and have been checking the facebookSDK.Build.cs, in it, has looked like Douglas said. but when I try to package it to android (ETC1), I got some error like this

    UATHelper: Packaging (Android (ETC1)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:977: error: cannot find symbol
    UATHelper: Packaging (Android (ETC1)): ERROR: cmd.exe failed with args /c "C:\Projects\tkd1monorepo\ue\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleRelease
    PackagingResults: Error: Unknown Error

    am I missing something here?

    (unreal version 4.23.1)
    (min SDK 28, target SDK 28)
    (SDK API level "latest", NDK API level "android-19")Click image for larger version

Name:	facebookSDK.png
Views:	683
Size:	146.3 KB
ID:	1729558
    Last edited by Bimaswara; 03-05-2020, 11:03 PM. Reason: add error detail

    Leave a comment:


  • replied
    Hello! I was having errors with this plugin on UE4.22

    Makis got helped me to fix them. You should edit FacebookSDK.Build.cs file as Douglas said and rename all the png files (from *.9.png to *.png) inside Facebook-4.18.0.aar file (zip archive).

    There are fixed plugin files. https://yadi.sk/d/te9pWusYTFj81Q

    Leave a comment:


  • replied
    Hello, I have tried using this plugin, but if I put it in my engine, I keep getting errors while trying to build for android:
    UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:633: error: cannot find symbol

    Leave a comment:


  • replied
    Hello guys, I've PM the OP and he helped me to solve it! So, here's the solution:

    On FacebookSDK.Build.cs file you have to swap those 3 lines to work:
    HTML Code:
       FacebookSDK(TargetInfo Target)   to  FacebookSDK(ReadOnlyTargetRules Target) : base(Target)    AdditionalPropertiesForReceipt.Add(new ReceiptProperty("AndroidPlugin", Path.Combine(PluginPath, "FacebookSDK_APL.xml"))   to  AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "FacebookSDK_APL.xml"));      string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, BuildConfiguration.RelativeEnginePath);  to  string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
    And it's done! The plugin can compile on newer versions of Unreal. Hope it helps. Bye bye.

    Leave a comment:


  • replied
    Unreal compiler is returning me those 3 errors:

    Code:
    c:\422projetcts\testefb\Plugins\FacebookSDK\Source\FacebookSDK\FacebookSDK.Build.cs(9,10) : error CS1729: 'UnrealBuildTool.ModuleRules' n?o cont?m um construtor que aceite 0 argumentos
    c:\422projetcts\testefb\Plugins\FacebookSDK\Source\FacebookSDK\FacebookSDK.Build.cs(60,67) : error CS0122: 'UnrealBuildTool.BuildConfiguration' ? inacess?vel devido ao seu n?vel de prote??o
    c:\422projetcts\testefb\Plugins\FacebookSDK\Source\FacebookSDK\FacebookSDK.Build.cs(61,5) : warning CS0618: 'UnrealBuildTool.ModuleRules.ReceiptPropertyList.Add(UnrealBuildTool.ReceiptProperty)' ? obsoleto: 'Constructing a ReceiptProperty object is deprecated. Call ReceiptProperties.Add() with the path to the file to stage.'

    Leave a comment:


  • replied
    Hey, someone managed to get this plugin working on newer versions of Unreal?

    Leave a comment:


  • replied
    Originally posted by Elviingoomez View Post
    I tried everything, but I think it does not work with mac or when compiling with Xcode, but ill try, But I'll keep trying to make it work, Thank you very much for answering
    You are welcome

    I wish i had a mac, i could help you further.

    Maybe someone else developing with Mac for Android and have used plugins in the past can help you.

    Search at forums and answerhub, maybe there are posts about plugins on Mac.

    Leave a comment:


  • replied
    I tried everything, but I think it does not work with mac or when compiling with Xcode, but ill try, But I'll keep trying to make it work, Thank you very much for answering

    Leave a comment:


  • replied
    At platform Android sdk settings set SDK API LEVEL TO: to matchndk.

    At Android settings set Minimum Version to 21 and Target SDK version to 23.

    Delete intermediate, build, saved folders in the project directory, and binaries intermediate folders, in all the plugins directories.

    Then generate visual studio solution open it and build with visual studio.

    Then open the project with the editor and try to package for android.

    You can try the 4.14 version of unreal.

    Don't forget, the first time you open your project, you have to manually enable plugins from the editor then restart and then package for android.

    Leave a comment:


  • replied
    i deleted all plugins and just left Share and Facebook

    Code:
    UATHelper: Packaging (Android (All)): UnrealBuildTool: BUILD FAILED
    UATHelper: Packaging (Android (All)): UnrealBuildTool: /Users/ElviinGoomez/Documents/CODEWORKS/android-sdk-macosx/tools/ant/build.xml:597: The following error occurred while executing this line:
    UATHelper: Packaging (Android (All)): UnrealBuildTool: /Users/ElviinGoomez/Documents/CODEWORKS/android-sdk-macosx/tools/ant/build.xml:649: The following error occurred while executing this line:
    UATHelper: Packaging (Android (All)): UnrealBuildTool: /Users/ElviinGoomez/Documents/CODEWORKS/android-sdk-macosx/tools/ant/build.xml:694: null returned: 1
    UATHelper: Packaging (Android (All)): UnrealBuildTool: 
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Total time: 21 seconds
    UATHelper: Packaging (Android (All)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: /Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Intermediate/Android/APK/bin/Plugins-debug.apk does not exist
    UATHelper: Packaging (Android (All)): UnrealBuildTool: File name: '/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Intermediate/Android/APK/bin/Plugins-debug.apk'
    UATHelper: Packaging (Android (All)): UnrealBuildTool:   at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)): UnrealBuildTool:   at UnrealBuildTool.UEDeployAndroid.MakeApk (UnrealBuildTool.AndroidToolChain ToolChain, System.String ProjectName, System.String ProjectDirectory, System.String OutputPath, System.String EngineDirectory, Boolean bForDistribution, System.String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncremental
    Package, Boolean bDisallowPackagingDataInApk) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)): UnrealBuildTool:   at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment (UnrealBuildTool.UEBuildTarget InTarget) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)): UnrealBuildTool:   at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs (System.String[] Arguments) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 460.787545s to run mono, ExitCode=5
    UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): /Users/Shared/UnrealEngine/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe Plugins Android Development -Project=/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.upro
    ject  /Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject  -remoteini="/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins" -noxge -nocreatestub -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.02.24-06.18.37.txt' 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunAndLog (System.String App, System.String CommandLine, System.String Logfile, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars, AutomationTool.SpewFilterCallbackType SpewFilterCallback) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunAndLog (AutomationTool.CommandEnvironment Env, System.String App, System.String CommandLine, System.String LogName, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars, AutomationTool.SpewFilterCallbackType SpewFilterCallback)
     [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, System.String CommandLine, System.String LogName, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, UnrealBuildTool.FileReference Project, System.String Target, System.String Platform, System.String Config, System.String AdditionalArgs, System.String LogName, System.Collections.Generic.Dictionary`2 EnvVars) [0x0
    0000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.UE4Build.BuildWithUBT (System.String TargetName, UnrealTargetPlatform TargetPlatform, System.String Config, UnrealBuildTool.FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, System.String InAddArgs, Boolean Fo
    rceUnity, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.UE4Build.Build (AutomationTool.BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, System.Collections.Generic.Dictionary`2 PlatformEnvVars, Nullab
    le`1 InChangelistNumberOverride, System.Collections.Generic.Dictionary`2 InTargetToManifest) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at Project.Build (AutomationTool.BuildCommand Command, AutomationTool.ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at BuildCookRun.ExecuteBuild () [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.BuildCommand.Execute () [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Automation.Execute (System.Collections.Generic.List`1 CommandsToExecute, Tools.DotNETCommon.CaselessDictionary.CaselessDictionary`1 Commands) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Automation.Process (System.String[] Arguments) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Program.MainProc (System.Object Param) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.InternalUtils.RunSingleInstance (System.Func`2 Main, System.Object Param) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Program.Main () [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
    UATHelper: Packaging (Android (All)): RunUAT ERROR: AutomationTool was unable to run successfully.
    PackagingResults:Error: Error Unknown Error

    Leave a comment:


  • replied
    This one is from an new project only with Sharing and Facebook plugin?

    Because i still see this message:/Users/Shared/UnrealEngine/4.13/Engine/Plugins/EpicLeaderboard/Source/EpicLeaderboard/Classes/EpicLeaderboardObject.h(16) : Property is exposed to the editor or blueprints but has no Category specified.

    Leave a comment:


  • replied
    here the full Log:

    Code:
    Project.Build: ********** BUILD COMMAND STARTED **********
    UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: mono "/Users/Shared/UnrealEngine/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe" Plugins Android Development -Project=/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject  /Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject  -remoteini="/Users/ElviinGoomez/
    Documents/Games/TestPlugins/Plugins" -noxge -generatemanifest -nocreatestub -NoHotReload
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Performing full C++ include scan (building a new target)
    UATHelper: Packaging (Android (All)): UnrealBuildTool: NDK version: 23, GccVersion: 4.9
    UATHelper: Packaging (Android (All)): UnrealBuildTool: building WITHOUT VULKAN define
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android
    UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 6.577758s to run mono, ExitCode=0
    UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: mono "/Users/Shared/UnrealEngine/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe" Plugins Android Development -Project=/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject  /Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject  -remoteini="/Users/ElviinGoomez/
    Documents/Games/TestPlugins/Plugins" -noxge -nocreatestub -NoHotReload -ignorejunk
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Creating makefile for Plugins (no existing makefile)
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
    UATHelper: Packaging (Android (All)): UnrealBuildTool: NDK version: 23, GccVersion: 4.9
    UATHelper: Packaging (Android (All)): UnrealBuildTool: building WITHOUT VULKAN define
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Parsing headers for Plugins
    UATHelper: Packaging (Android (All)): UnrealBuildTool:   Running UnrealHeaderTool "/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject" "/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Intermediate/Build/Android/Plugins/Development/Plugins.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -Wa
    rningsAsErrors -installed
    UATHelper: Packaging (Android (All)): UnrealBuildTool: /Users/Shared/UnrealEngine/4.13/Engine/Plugins/EpicLeaderboard/Source/EpicLeaderboard/Classes/EpicLeaderboardObject.h(16) : Property is exposed to the editor or blueprints but has no Category specified.
    UATHelper: Packaging (Android (All)): UnrealBuildTool: Error: Failed to generate code for Plugins - error code: OtherCompilationError (5)
    UATHelper: Packaging (Android (All)): UnrealBuildTool: UnrealHeaderTool failed for target 'Plugins' (platform: Android, module info: /Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Intermediate/Build/Android/Plugins/Development/Plugins.uhtmanifest).
    UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 38.524047s to run mono, ExitCode=5
    UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): /Users/Shared/UnrealEngine/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe Plugins Android Development -Project=/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.upro
    ject  /Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins/Plugins.uproject  -remoteini="/Users/ElviinGoomez/Documents/Games/TestPlugins/Plugins" -noxge -nocreatestub -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.02.24-05.32.48.txt' 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunAndLog (System.String App, System.String CommandLine, System.String Logfile, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars, AutomationTool.SpewFilterCallbackType SpewFilterCallback) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunAndLog (AutomationTool.CommandEnvironment Env, System.String App, System.String CommandLine, System.String LogName, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars, AutomationTool.SpewFilterCallbackType SpewFilterCallback)
     [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, System.String CommandLine, System.String LogName, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, UnrealBuildTool.FileReference Project, System.String Target, System.String Platform, System.String Config, System.String AdditionalArgs, System.String LogName, System.Collections.Generic.Dictionary`2 EnvVars) [0x0
    0000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.UE4Build.BuildWithUBT (System.String TargetName, UnrealTargetPlatform TargetPlatform, System.String Config, UnrealBuildTool.FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, System.String InAddArgs, Boolean Fo
    rceUnity, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.UE4Build.Build (AutomationTool.BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, System.Collections.Generic.Dictionary`2 PlatformEnvVars, Nullab
    le`1 InChangelistNumberOverride, System.Collections.Generic.Dictionary`2 InTargetToManifest) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at Project.Build (AutomationTool.BuildCommand Command, AutomationTool.ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at BuildCookRun.ExecuteBuild () [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.BuildCommand.Execute () [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Automation.Execute (System.Collections.Generic.List`1 CommandsToExecute, Tools.DotNETCommon.CaselessDictionary.CaselessDictionary`1 Commands) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Automation.Process (System.String[] Arguments) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Program.MainProc (System.Object Param) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.InternalUtils.RunSingleInstance (System.Func`2 Main, System.Object Param) [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)):   at AutomationTool.Program.Main () [0x00000] in <filename unknown>:0 
    UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
    UATHelper: Packaging (Android (All)): RunUAT ERROR: AutomationTool was unable to run successfully.
    PackagingResults:Error: Error Unknown Error
    Click image for larger version

Name:	Captura de pantalla 2017-02-24 a las 5.36.34 a.m..png
Views:	1
Size:	41.3 KB
ID:	1123893

    Leave a comment:

Working...
X